From 2f092c62fe93f725ea57bb785d5aa1dc6ab9b1ce Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 6 Feb 2024 19:12:11 +0200 Subject: [PATCH] Disable std::pmr use under AppleClang. Refs #162. --- test/sv_construct_test.cpp | 12 ++++++++++++ test/sv_conversion_test.cpp | 12 ++++++++++++ test/sv_eq_test.cpp | 12 ++++++++++++ test/sv_lt_test.cpp | 12 ++++++++++++ 4 files changed, 48 insertions(+) diff --git a/test/sv_construct_test.cpp b/test/sv_construct_test.cpp index 3a33fbd..3da015b 100644 --- a/test/sv_construct_test.cpp +++ b/test/sv_construct_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) diff --git a/test/sv_conversion_test.cpp b/test/sv_conversion_test.cpp index 64a7105..f9cec64 100644 --- a/test/sv_conversion_test.cpp +++ b/test/sv_conversion_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) # include diff --git a/test/sv_eq_test.cpp b/test/sv_eq_test.cpp index 46e6ef7..a6d3e29 100644 --- a/test/sv_eq_test.cpp +++ b/test/sv_eq_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) # include diff --git a/test/sv_lt_test.cpp b/test/sv_lt_test.cpp index dfa4227..4661afd 100644 --- a/test/sv_lt_test.cpp +++ b/test/sv_lt_test.cpp @@ -4,6 +4,18 @@ #include #include +#include + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) +# if defined(__apple_build_version__) +// Under macOS, it's possible for the header +// to be present, but for +// libc++.dylib to not have support for it. +// https://github.com/boostorg/core/issues/162 +# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE +# endif +#endif + #include #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) # include