]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/string/macro.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/assert.hpp>
6 #include <boost/hana/equal.hpp>
7 #include <boost/hana/string.hpp>
10 namespace hana
= boost::hana
;
14 // make sure string_c and BOOST_HANA_STRING give the same result
17 auto const s1
= BOOST_HANA_STRING("");
18 auto const s2
= hana::string_c
<>;
19 static_assert(std::is_same
<decltype(s1
), decltype(s2
)>::value
, "");
22 auto const s1
= BOOST_HANA_STRING("a");
23 auto const s2
= hana::string_c
<'a'>;
24 static_assert(std::is_same
<decltype(s1
), decltype(s2
)>::value
, "");
27 auto const s1
= BOOST_HANA_STRING("abcd");
28 auto const s2
= hana::string_c
<'a', 'b', 'c', 'd'>;
29 static_assert(std::is_same
<decltype(s1
), decltype(s2
)>::value
, "");