forked from boostorg/unordered
Refactor move(init_type&) to handle defects in C++20 versions of libstdc++ for gcc versions <=12
This commit is contained in:
1 parent
48e92afd92
commit
86d3f9f632
2 files changed
+2
-2
No files matched your search
@@ -55,7 +55,7 @@ namespace boost {
|
||||
|
||||
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)
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace boost {
|
||||
static element_type&& move(element_type& x) { return std::move(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)
|
||||
|
||||
Reference in new issue
Block a user