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)
4 
5 #include <boost/hana/assert.hpp>
6 #include <boost/hana/equal.hpp>
7 #include <boost/hana/string.hpp>
8 
9 #include <type_traits>
10 namespace hana = boost::hana;
11 
12 
main()13 int main() {
14     // make sure string_c and BOOST_HANA_STRING give the same result
15 
16     {
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, "");
20     }
21     {
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, "");
25     }
26     {
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, "");
30     }
31 }
32