]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/boost/mpl/integral_c/tag.cpp
1 // Copyright Louis Dionne 2013-2017
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)
5 #include <boost/hana/ext/boost/mpl/integral_c.hpp>
7 #include <boost/hana/core/tag_of.hpp>
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>
17 #include <type_traits>
18 namespace hana
= boost::hana
;
19 namespace mpl
= boost::mpl
;
22 static_assert(std::is_same
<
23 hana::tag_of_t
<mpl::bool_
<true>>,
24 hana::ext::boost::mpl::integral_c_tag
<bool>
27 static_assert(std::is_same
<
28 hana::tag_of_t
<mpl::int_
<0>>,
29 hana::ext::boost::mpl::integral_c_tag
<int>
32 static_assert(std::is_same
<
33 hana::tag_of_t
<mpl::long_
<0>>,
34 hana::ext::boost::mpl::integral_c_tag
<long>
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>
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>
47 static_assert(std::is_same
<
48 hana::tag_of_t
<mpl::char_
<0>>,
49 hana::ext::boost::mpl::integral_c_tag
<char>