diff --git a/toml/get.hpp b/toml/get.hpp index ed355ac..a27947e 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -26,9 +26,9 @@ inline T const& get(const value& v) template::value, std::nullptr_t>::type = nullptr> -inline T && get(value&& v) +inline T&& get(value&& v) { - return v.cast::value>(); + return std::move(v.cast::value>()); } // ============================================================================