diff --git a/toml/get.hpp b/toml/get.hpp index bc9f43f..2314f32 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -465,7 +465,7 @@ basic_value&& find(basic_value&& v, const key& ky) {std::addressof(detail::get_region(v)), "in this table"} })); } - return tab.at(ky); + return std::move(tab.at(ky)); } // ----------------------------------------------------------------------------