diff --git a/include/boost/locale/config.hpp b/include/boost/locale/config.hpp index b2c2248b..1c69c92d 100644 --- a/include/boost/locale/config.hpp +++ b/include/boost/locale/config.hpp @@ -8,6 +8,7 @@ #define BOOST_LOCALE_CONFIG_HPP_INCLUDED #include +#include #ifdef __has_include # if __has_include() # include @@ -88,8 +89,8 @@ # define BOOST_LOCALE_NO_SANITIZE(what) #endif -#ifndef __cpp_lib_char8_t -// No std::basic_string +#if !defined(__cpp_lib_char8_t) || BOOST_WORKAROUND(BOOST_CLANG_VERSION, < 150000) +// No std::basic_string or bug in Clang: https://github.com/llvm/llvm-project/issues/55560 # define BOOST_LOCALE_NO_CXX20_STRING8 #endif