mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-29 23:41:05 +00:00
add explicit std::move to toml::get(&&)
This commit is contained in:
parent
fcbfbd3a26
commit
dc060ba840
@ -26,9 +26,9 @@ inline T const& get(const value& v)
|
||||
|
||||
template<typename T, typename std::enable_if<
|
||||
detail::is_exact_toml_type<T>::value, std::nullptr_t>::type = nullptr>
|
||||
inline T && get(value&& v)
|
||||
inline T&& get(value&& v)
|
||||
{
|
||||
return v.cast<detail::toml_value_t<T>::value>();
|
||||
return std::move(v.cast<detail::toml_value_t<T>::value>());
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user