Disable test for clang with libstdc++ as clang triggers an error parsing STL headers with concepts (stl_iterator.h: error: requires clause differs in template redeclaration")

This commit is contained in:
Ion Gaztañaga
2023-05-11 21:14:19 +02:00
parent e99536c535
commit b8b089730a

View File

@@ -21,7 +21,15 @@
#endif
#endif
#if defined(BOOST_CONTAINER_TEST_HAS_CONCEPTS) //common_iterator
//Detect Clang vs libstdc++ incompatibility
//"include/c++/12/bits/stl_iterator.h: error: requires clause differs in template redeclaration"
#if defined(__clang_version__) && (__clang_major__ <= 15) && defined(BOOST_GNU_STDLIB)
#define BOOST_CONTAINER_TEST_CLANG_UNSUPPORTED_LIBSTDCPP
#endif
#if defined(BOOST_CONTAINER_TEST_HAS_CONCEPTS) && !defined(BOOST_CONTAINER_TEST_CLANG_UNSUPPORTED_LIBSTDCPP)
#include <boost/container/vector.hpp>
#include <boost/container/list.hpp>