fixed unordered_flat_map::map_types::move

This commit is contained in:
joaquintides
2022-10-14 10:40:07 +02:00
parent f85e04ef31
commit aefb5dd66a

View File

@ -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<Key&>(x.first)), std::move(x.second)};
return {
std::move(const_cast<raw_key_type&>(x.first)),
std::move(const_cast<raw_mapped_type&>(x.second))
};
}
};