| 11 | |
| 12 | |
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected