Refactor move(init_type&) to handle defects in C++20 versions of libstdc++ for gcc versions <=12

This commit is contained in:
Christian Mazakas
2023-03-02 15:57:17 -08:00
parent 48e92afd92
commit 86d3f9f632
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)