mirror of
https://github.com/boostorg/core.git
synced 2025-05-11 05:07:39 +00:00
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:
parent
1fa592c9ec
commit
0ac87736f8
@ -3,8 +3,17 @@
|
|||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#include <boost/core/detail/string_view.hpp>
|
#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()
|
int main()
|
||||||
{
|
{
|
||||||
return boost::core::string_view( nullptr ).size() == 0;
|
return boost::core::string_view( nullptr ).size() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user