mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Refactor move(init_type&)
to handle defects in C++20 versions of libstdc++ for gcc versions <=12
This commit is contained in:
@ -55,7 +55,7 @@ namespace boost {
|
|||||||
|
|
||||||
static moved_type move(init_type& x)
|
static moved_type move(init_type& x)
|
||||||
{
|
{
|
||||||
return {std::get<0>(std::move(x)), std::get<1>(std::move(x))};
|
return {std::move(x.first), std::move(x.second)};
|
||||||
}
|
}
|
||||||
|
|
||||||
static moved_type move(element_type& x)
|
static moved_type move(element_type& x)
|
||||||
|
@ -79,7 +79,7 @@ namespace boost {
|
|||||||
static element_type&& move(element_type& x) { return std::move(x); }
|
static element_type&& move(element_type& x) { return std::move(x); }
|
||||||
static moved_type move(init_type& x)
|
static moved_type move(init_type& x)
|
||||||
{
|
{
|
||||||
return {std::get<0>(std::move(x)), std::get<1>(std::move(x))};
|
return {std::move(x.first), std::move(x.second)};
|
||||||
}
|
}
|
||||||
|
|
||||||
static moved_type move(value_type& x)
|
static moved_type move(value_type& x)
|
||||||
|
Reference in New Issue
Block a user