forked from boostorg/core
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:
1 parent
1fa592c9ec
commit
0ac87736f8
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user