]>
Commit | Line | Data |
---|---|---|
b32b8144 | 1 | // Copyright Louis Dionne 2013-2017 |
7c673cae FG |
2 | // Distributed under the Boost Software License, Version 1.0. |
3 | // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) | |
4 | ||
5 | #include <boost/hana/ext/boost/mpl/integral_c.hpp> | |
6 | ||
7 | #include <boost/hana/core/tag_of.hpp> | |
8 | ||
9 | #include <boost/mpl/bool.hpp> | |
10 | #include <boost/mpl/char.hpp> | |
11 | #include <boost/mpl/int.hpp> | |
12 | #include <boost/mpl/integral_c.hpp> | |
13 | #include <boost/mpl/long.hpp> | |
14 | #include <boost/mpl/size_t.hpp> | |
15 | ||
16 | #include <cstddef> | |
17 | #include <type_traits> | |
18 | namespace hana = boost::hana; | |
19 | namespace mpl = boost::mpl; | |
20 | ||
21 | ||
22 | static_assert(std::is_same< | |
23 | hana::tag_of_t<mpl::bool_<true>>, | |
24 | hana::ext::boost::mpl::integral_c_tag<bool> | |
25 | >::value, ""); | |
26 | ||
27 | static_assert(std::is_same< | |
28 | hana::tag_of_t<mpl::int_<0>>, | |
29 | hana::ext::boost::mpl::integral_c_tag<int> | |
30 | >::value, ""); | |
31 | ||
32 | static_assert(std::is_same< | |
33 | hana::tag_of_t<mpl::long_<0>>, | |
34 | hana::ext::boost::mpl::integral_c_tag<long> | |
35 | >::value, ""); | |
36 | ||
37 | static_assert(std::is_same< | |
38 | hana::tag_of_t<mpl::size_t<0>>, | |
39 | hana::ext::boost::mpl::integral_c_tag<std::size_t> | |
40 | >::value, ""); | |
41 | ||
42 | static_assert(std::is_same< | |
43 | hana::tag_of_t<mpl::integral_c<int, 0>>, | |
44 | hana::ext::boost::mpl::integral_c_tag<int> | |
45 | >::value, ""); | |
46 | ||
47 | static_assert(std::is_same< | |
48 | hana::tag_of_t<mpl::char_<0>>, | |
49 | hana::ext::boost::mpl::integral_c_tag<char> | |
50 | >::value, ""); | |
51 | ||
52 | int main() { } |