MCPcopy Create free account
hub / github.com/boostorg/hana / main

Function main

test/string/macro.cpp:13–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected