diff --git a/include/boost/unordered/unordered_flat_map.hpp b/include/boost/unordered/unordered_flat_map.hpp index df2717c6..7fb736f6 100644 --- a/include/boost/unordered/unordered_flat_map.hpp +++ b/include/boost/unordered/unordered_flat_map.hpp @@ -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) diff --git a/include/boost/unordered/unordered_node_map.hpp b/include/boost/unordered/unordered_node_map.hpp index c6f25b83..6c5611fc 100644 --- a/include/boost/unordered/unordered_node_map.hpp +++ b/include/boost/unordered/unordered_node_map.hpp @@ -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)