Files

25 lines
604 B
C++
Raw Permalink Normal View History

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.
// 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
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;
}
}