summaryrefslogtreecommitdiff
path: root/boost/hana/pair.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/pair.hpp')
-rw-r--r--boost/hana/pair.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/boost/hana/pair.hpp b/boost/hana/pair.hpp
index 75cd9e287b..35ff857269 100644
--- a/boost/hana/pair.hpp
+++ b/boost/hana/pair.hpp
@@ -79,8 +79,8 @@ BOOST_HANA_NAMESPACE_BEGIN
BOOST_HANA_TT_IS_CONVERTIBLE(U const&, Second)
>::type>
constexpr pair(pair<T, U> const& other)
- : detail::ebo<detail::pix<0>, First>(detail::ebo_get<detail::pix<0>>(other))
- , detail::ebo<detail::pix<1>, Second>(detail::ebo_get<detail::pix<1>>(other))
+ : detail::ebo<detail::pix<0>, First>(hana::first(other))
+ , detail::ebo<detail::pix<1>, Second>(hana::second(other))
{ }
template <typename T, typename U, typename = typename std::enable_if<
@@ -90,8 +90,8 @@ BOOST_HANA_NAMESPACE_BEGIN
BOOST_HANA_TT_IS_CONVERTIBLE(U&&, Second)
>::type>
constexpr pair(pair<T, U>&& other)
- : detail::ebo<detail::pix<0>, First>(static_cast<T&&>(detail::ebo_get<detail::pix<0>>(other)))
- , detail::ebo<detail::pix<1>, Second>(static_cast<U&&>(detail::ebo_get<detail::pix<1>>(other)))
+ : detail::ebo<detail::pix<0>, First>(hana::first(static_cast<pair<T, U>&&>(other)))
+ , detail::ebo<detail::pix<1>, Second>(hana::second(static_cast<pair<T, U>&&>(other)))
{ }
@@ -101,8 +101,8 @@ BOOST_HANA_NAMESPACE_BEGIN
BOOST_HANA_TT_IS_ASSIGNABLE(Second&, U const&)
>::type>
constexpr pair& operator=(pair<T, U> const& other) {
- detail::ebo_get<detail::pix<0>>(*this) = detail::ebo_get<detail::pix<0>>(other);
- detail::ebo_get<detail::pix<1>>(*this) = detail::ebo_get<detail::pix<1>>(other);
+ hana::first(*this) = hana::first(other);
+ hana::second(*this) = hana::second(other);
return *this;
}
@@ -111,8 +111,8 @@ BOOST_HANA_NAMESPACE_BEGIN
BOOST_HANA_TT_IS_ASSIGNABLE(Second&, U&&)
>::type>
constexpr pair& operator=(pair<T, U>&& other) {
- detail::ebo_get<detail::pix<0>>(*this) = static_cast<T&&>(detail::ebo_get<detail::pix<0>>(other));
- detail::ebo_get<detail::pix<1>>(*this) = static_cast<U&&>(detail::ebo_get<detail::pix<1>>(other));
+ hana::first(*this) = hana::first(static_cast<pair<T, U>&&>(other));
+ hana::second(*this) = hana::second(static_cast<pair<T, U>&&>(other));
return *this;
}