-// Copyright Louis Dionne 2013-2016
+// Copyright Louis Dionne 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/assert.hpp>
+#include <boost/hana/at.hpp>
#include <boost/hana/basic_tuple.hpp>
#include <laws/base.hpp>
using T = hana::basic_tuple<int>;
T t0(2);
T t = t0;
- BOOST_HANA_RUNTIME_CHECK(hana::get_impl<0>(t) == 2);
+ BOOST_HANA_RUNTIME_CHECK(hana::at_c<0>(t) == 2);
}
{
using T = hana::basic_tuple<int, char>;
T t0(2, 'a');
T t = t0;
- BOOST_HANA_RUNTIME_CHECK(hana::get_impl<0>(t) == 2);
- BOOST_HANA_RUNTIME_CHECK(hana::get_impl<1>(t) == 'a');
+ BOOST_HANA_RUNTIME_CHECK(hana::at_c<0>(t) == 2);
+ BOOST_HANA_RUNTIME_CHECK(hana::at_c<1>(t) == 'a');
}
{
using T = hana::basic_tuple<int, char, std::string>;
const T t0(2, 'a', "some text");
T t = t0;
- BOOST_HANA_RUNTIME_CHECK(hana::get_impl<0>(t) == 2);
- BOOST_HANA_RUNTIME_CHECK(hana::get_impl<1>(t) == 'a');
- BOOST_HANA_RUNTIME_CHECK(hana::get_impl<2>(t) == "some text");
+ BOOST_HANA_RUNTIME_CHECK(hana::at_c<0>(t) == 2);
+ BOOST_HANA_RUNTIME_CHECK(hana::at_c<1>(t) == 'a');
+ BOOST_HANA_RUNTIME_CHECK(hana::at_c<2>(t) == "some text");
}
{
using T = hana::basic_tuple<int>;
constexpr T t0(2);
constexpr T t = t0;
- static_assert(hana::get_impl<0>(t) == 2, "");
+ static_assert(hana::at_c<0>(t) == 2, "");
}
{
using T = hana::basic_tuple<Empty>;
constexpr T t0{};
constexpr T t = t0;
- constexpr Empty e = hana::get_impl<0>(t); (void)e;
+ constexpr Empty e = hana::at_c<0>(t); (void)e;
}
{
struct T { };