diff --git a/include/boost/static_string/config.hpp b/include/boost/static_string/config.hpp index 90cc218..b917023 100644 --- a/include/boost/static_string/config.hpp +++ b/include/boost/static_string/config.hpp @@ -125,6 +125,8 @@ #endif #endif +// Compiler bug prevents constexpr from working with clang 4.x and 5.x +// if it is detected, we disable constexpr #if (BOOST_STATIC_STRING_STANDARD_VERSION >= 201402L) && \ (BOOST_STATIC_STRING_STANDARD_VERSION < 201703L) && \ defined(__clang__) && \ @@ -138,6 +140,13 @@ defined(__clang__) && \ #define BOOST_STATIC_STRING_CPP14_CONSTEXPR #endif +#ifdef __clang__ +#warning STATIC STRING CLANG DEBUG INFO +#warning LIBSTDCXX OLD __GLIBCPP__ +#warning LIBSTDCXX NEW __GLIBCXX__ +#warning LIBCXX _LIBCPP_VERSION +#endif + #ifndef BOOST_STATIC_STRING_STANDALONE #include #include @@ -146,6 +155,7 @@ defined(__clang__) && \ #include #else #include +#include #include #endif diff --git a/include/boost/static_string/static_string.hpp b/include/boost/static_string/static_string.hpp index 6436eb6..050c637 100644 --- a/include/boost/static_string/static_string.hpp +++ b/include/boost/static_string/static_string.hpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include