]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/experimental/printable/type.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)
5 #include <boost/hana/experimental/printable.hpp>
6 #include <boost/hana/type.hpp>
9 namespace hana
= boost::hana
;
12 template <typename
...T
>
16 // Since demangling may not always be available, and since that's not
17 // our job to test this (but Boost.Core's job), we don't test the
18 // actual demangling of types. We merely print a type to make sure
19 // things don't blow up stupidly, but we can't really test more than
22 std::cout
<< hana::experimental::print(hana::type_c
<void>) << std::endl
;
24 std::cout
<< hana::experimental::print(hana::type_c
<int>) << std::endl
;
26 std::cout
<< hana::experimental::print(hana::type_c
<int const>) << std::endl
;
28 std::cout
<< hana::experimental::print(hana::type_c
<int&>) << std::endl
;
30 std::cout
<< hana::experimental::print(hana::type_c
<int const&>) << std::endl
;
32 std::cout
<< hana::experimental::print(hana::type_c
<int(&)[]>) << std::endl
;
34 std::cout
<< hana::experimental::print(hana::type_c
<Template
<void, char const*>>) << std::endl
;