diff --git a/include/boost/unordered/unordered_flat_map.hpp b/include/boost/unordered/unordered_flat_map.hpp index b67fa9d4..74dad701 100644 --- a/include/boost/unordered/unordered_flat_map.hpp +++ b/include/boost/unordered/unordered_flat_map.hpp @@ -48,7 +48,10 @@ namespace boost { static moved_type move(value_type& x) { // TODO: we probably need to launder here - return {std::move(const_cast(x.first)), std::move(x.second)}; + return { + std::move(const_cast(x.first)), + std::move(const_cast(x.second)) + }; } };