2009-05-30 11:22:59 +00:00
|
|
|
// (C) Copyright Beman Dawes 2009
|
|
|
|
|
|
|
|
// Use, modification and distribution are subject to the
|
|
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
// See http://www.boost.org/libs/config for more information.
|
|
|
|
|
2012-07-15 15:59:05 +00:00
|
|
|
// MACRO: BOOST_NO_CXX11_NULLPTR
|
2009-05-30 11:22:59 +00:00
|
|
|
// TITLE: C++0x nullptr feature unavailable
|
|
|
|
// DESCRIPTION: The compiler does not support the C++0x nullptr feature
|
|
|
|
|
2012-07-15 15:59:05 +00:00
|
|
|
namespace boost_no_cxx11_nullptr {
|
2009-05-30 11:22:59 +00:00
|
|
|
|
2011-12-23 17:17:31 +00:00
|
|
|
void quiet_warning(const int*){}
|
|
|
|
|
2009-05-30 11:22:59 +00:00
|
|
|
int test()
|
|
|
|
{
|
|
|
|
int * p = nullptr;
|
2011-12-23 17:17:31 +00:00
|
|
|
quiet_warning(p);
|
2009-05-30 11:22:59 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|