forked from boostorg/unordered
fixed unordered_flat_map::map_types::move
This commit is contained in:
1 parent
f85e04ef31
commit
aefb5dd66a
1 file changed
+4
-1
@@ -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