/* @copyright Louis Dionne 2015 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 #include #include using namespace boost::hana; using namespace std::literals; int main() { { //! [comparable] BOOST_HANA_RUNTIME_CHECK(make(1, "234"s) == make(1ll, "234"s)); BOOST_HANA_CONSTEXPR_CHECK(make('x', 2) != make('y', 2)); //! [comparable] }{ //! [first] BOOST_HANA_CONSTEXPR_CHECK(first(make(1, 'x')) == 1); //! [first] }{ //! [second] BOOST_HANA_CONSTEXPR_CHECK(second(make(1, 'x')) == 'x'); //! [second] }{ //! [make] BOOST_HANA_CONSTEXPR_CHECK(first(make(1, 'x')) == 1); BOOST_HANA_CONSTEXPR_CHECK(second(make(1, 'x')) == 'x'); //! [make] } }