boost_no_nullptr.ipp 604 B

123456789101112131415161718192021222324
  1. // (C) Copyright Beman Dawes 2009
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for more information.
  6. // MACRO: BOOST_NO_CXX11_NULLPTR
  7. // TITLE: C++0x nullptr feature unavailable
  8. // DESCRIPTION: The compiler does not support the C++0x nullptr feature
  9. namespace boost_no_cxx11_nullptr {
  10. void quiet_warning(const int*){}
  11. int test()
  12. {
  13. int * p = nullptr;
  14. quiet_warning(p);
  15. return 0;
  16. }
  17. }