]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/example/ext/boost/mpl/list/conversion.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / hana / example / ext / boost / mpl / list / conversion.cpp
1 // Copyright Louis Dionne 2013-2016
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/core/to.hpp>
6 #include <boost/hana/ext/boost/mpl/list.hpp>
7 #include <boost/hana/tuple.hpp>
8 #include <boost/hana/type.hpp>
9
10 #include <boost/mpl/list.hpp>
11 #include <type_traits>
12 namespace hana = boost::hana;
13 namespace mpl = boost::mpl;
14
15
16 auto xs = hana::make_tuple(hana::type_c<int>, hana::type_c<char>, hana::type_c<double>);
17 static_assert(std::is_same<
18 decltype(hana::to<hana::ext::boost::mpl::list_tag>(xs)),
19 mpl::list<int, char, double>
20 >{}, "");
21
22 int main() { }