From 5e72e5decaecbb50d17527ff0c566374379b3cf8 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Wed, 29 Mar 2023 16:40:50 +0200 Subject: [PATCH] Workaround for Clang 5 inline variables with C++1z --- include/boost/charconv/detail/floff.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/charconv/detail/floff.hpp b/include/boost/charconv/detail/floff.hpp index 47a9d27..72a7b4a 100644 --- a/include/boost/charconv/detail/floff.hpp +++ b/include/boost/charconv/detail/floff.hpp @@ -1769,7 +1769,8 @@ namespace jkj { namespace floff { {0xf70867153aa2db38, 0xb8cbee4fc66d1ea8}}; }; - #if defined(BOOST_NO_CXX17_INLINE_VARIABLES) && (!defined(_MSC_VER) || _MSC_VER != 1900) + #if (defined(BOOST_NO_CXX17_INLINE_VARIABLES) && (!defined(_MSC_VER) || _MSC_VER != 1900)) || \ + (defined(__clang_major__) && __clang_major__ == 5) constexpr int main_cache_holder::cache_bits; constexpr int main_cache_holder::min_k;