Skip to content

Commit

Permalink
Workaround bug in Clang < 15.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Sep 13, 2023
1 parent 324a667 commit 908b274
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/boost/locale/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define BOOST_LOCALE_CONFIG_HPP_INCLUDED

#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
#ifdef __has_include
# if __has_include(<version>)
# include <version>
Expand Down Expand Up @@ -88,8 +89,8 @@
# define BOOST_LOCALE_NO_SANITIZE(what)
#endif

#ifndef __cpp_lib_char8_t
// No std::basic_string<char8_t>
#if !defined(__cpp_lib_char8_t) || BOOST_WORKAROUND(BOOST_CLANG_VERSION, < 150000)
// No std::basic_string<char8_t> or bug in Clang: https://github.com/llvm/llvm-project/issues/55560
# define BOOST_LOCALE_NO_CXX20_STRING8
#endif

Expand Down

0 comments on commit 908b274

Please sign in to comment.