From 0ac87736f86d04fda4d628bc4a55a53447c8e135 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 18 Sep 2022 21:10:18 +0300 Subject: [PATCH] Explicitly disable sv_nullptr_fail when BOOST_NO_CXX11_NULLPTR is defined, because libc++ seems to have nullptr even in C++03 mode --- test/sv_nullptr_fail.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/sv_nullptr_fail.cpp b/test/sv_nullptr_fail.cpp index 2afbcd0..d862038 100644 --- a/test/sv_nullptr_fail.cpp +++ b/test/sv_nullptr_fail.cpp @@ -3,8 +3,17 @@ // https://www.boost.org/LICENSE_1_0.txt #include +#include + +#if defined(BOOST_NO_CXX11_NULLPTR) + +#error BOOST_NO_CXX11_NULLPTR is defined, test will be skipped. + +#else int main() { return boost::core::string_view( nullptr ).size() == 0; } + +#endif