]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/example/ext/boost/mpl/list/conversion.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / example / ext / boost / mpl / list / conversion.cpp
CommitLineData
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/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>
12namespace hana = boost::hana;
13namespace mpl = boost::mpl;
14
15
16auto xs = hana::make_tuple(hana::type_c<int>, hana::type_c<char>, hana::type_c<double>);
17static_assert(std::is_same<
18 decltype(hana::to<hana::ext::boost::mpl::list_tag>(xs)),
19 mpl::list<int, char, double>
20>{}, "");
21
22int main() { }