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/core/to.hpp>
6 #include <boost/hana/ext/boost/mpl/list.hpp>
7 #include <boost/hana/tuple.hpp>
8 #include <boost/hana/type.hpp>
10 #include <boost/mpl/list.hpp>
11 #include <type_traits>
12 namespace hana = boost::hana;
13 namespace mpl = boost::mpl;
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>