mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
fix: move element of map in toml::find(val&&)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user