From 908b2744b4d9ad95da5f274ffad78d4c22087fd4 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Wed, 13 Sep 2023 16:56:53 +0200 Subject: [PATCH] Workaround bug in Clang < 15.x --- include/boost/locale/config.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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