From 48a22d91b3c8df42c00d76631c21ab3840296971 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 23 May 2020 19:46:40 +0300 Subject: [PATCH] Detect libstdc++ from gcc 10 by the presence of header. --- include/boost/config/stdlib/libstdcpp3.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index c4c99960..ee8f2a20 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -125,7 +125,9 @@ // #ifdef __clang__ -#if __has_include() +#if __has_include() +# define BOOST_LIBSTDCXX_VERSION 100100 +#elif __has_include() # define BOOST_LIBSTDCXX_VERSION 90100 #elif __has_include() # define BOOST_LIBSTDCXX_VERSION 80100