Explicitly disable sv_nullptr_fail when BOOST_NO_CXX11_NULLPTR is defined, because libc++ seems to have nullptr even in C++03 mode

This commit is contained in:
Peter Dimov 2022-09-18 21:10:18 +03:00
parent 1fa592c9ec
commit 0ac87736f8

View File

@ -3,8 +3,17 @@
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/detail/string_view.hpp>
#include <boost/config.hpp>
#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