fix: move element of map in toml::find(val&&)

This commit is contained in:
ToruNiina
2019-06-17 12:13:59 +09:00
parent 94bcf0aae9
commit b3300fad2a

View File

@@ -465,7 +465,7 @@ basic_value<C, M, V>&& find(basic_value<C, M, V>&& v, const key& ky)
{std::addressof(detail::get_region(v)), "in this table"}
}));
}
return tab.at(ky);
return std::move(tab.at(ky));
}
// ----------------------------------------------------------------------------