mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
fixed unordered_flat_map::map_types::move
This commit is contained in:
@ -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))
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user