From 87931b074feb803ae622ca064fbf1d5202879824 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Tue, 16 Apr 2019 19:37:15 +0100 Subject: [PATCH] In C++20 the u8 literal produces a char8_t[] not a char[]. Fixes https://github.com/boostorg/config/issues/276. --- test/boost_no_unicode_literals.ipp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/boost_no_unicode_literals.ipp b/test/boost_no_unicode_literals.ipp index d5ffa0cb..bbf865ec 100644 --- a/test/boost_no_unicode_literals.ipp +++ b/test/boost_no_unicode_literals.ipp @@ -17,7 +17,12 @@ void quiet_warning(const CharT*){} int test() { +#ifdef _­_­cpp_­char8_­t + // The change to char8_t in C++20 is a breaking change to the std: + const char8_t* c8 = u8""; +#else const char* c8 = u8""; +#endif const char16_t* c16 = u""; const char32_t* c32 = U""; quiet_warning(c8);