Detect libstdc++ from gcc 10 by the presence of <compare> header.

This commit is contained in:
Andrey Semashev
2020-05-23 19:46:40 +03:00
parent 982bd905f3
commit 48a22d91b3

View File

@ -125,7 +125,9 @@
// //
#ifdef __clang__ #ifdef __clang__
#if __has_include(<memory_resource>) #if __has_include(<compare>)
# define BOOST_LIBSTDCXX_VERSION 100100
#elif __has_include(<memory_resource>)
# define BOOST_LIBSTDCXX_VERSION 90100 # define BOOST_LIBSTDCXX_VERSION 90100
#elif __has_include(<charconv>) #elif __has_include(<charconv>)
# define BOOST_LIBSTDCXX_VERSION 80100 # define BOOST_LIBSTDCXX_VERSION 80100