mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 19:10:11 +08:00
add explicit std::move to toml::get(&&)
This commit is contained in:
@@ -26,9 +26,9 @@ inline T const& get(const value& v)
|
|||||||
|
|
||||||
template<typename T, typename std::enable_if<
|
template<typename T, typename std::enable_if<
|
||||||
detail::is_exact_toml_type<T>::value, std::nullptr_t>::type = nullptr>
|
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>());
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
Reference in New Issue
Block a user