no_cxx11_numeric_limits_pass.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file was automatically generated on Sat Sep 25 16:53:41 2010
  2. // by libs/config/tools/generate.cpp
  3. // Copyright John Maddock 2002-4.
  4. // Use, modification and distribution are subject to the
  5. // Boost Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // See http://www.boost.org/libs/config for the most recent version.//
  8. // Revision $Id: generate.cpp 49281 2008-10-11 15:40:44Z johnmaddock $
  9. //
  10. // Test file for macro BOOST_NO_CXX11_NUMERIC_LIMITS
  11. // This file should compile, if it does not then
  12. // BOOST_NO_CXX11_NUMERIC_LIMITS should be defined.
  13. // See file boost_no_limits_lowest.ipp for details
  14. // Must not have BOOST_ASSERT_CONFIG set; it defeats
  15. // the objective of this file:
  16. #ifdef BOOST_ASSERT_CONFIG
  17. # undef BOOST_ASSERT_CONFIG
  18. #endif
  19. #include <boost/config.hpp>
  20. #include "test.hpp"
  21. #ifndef BOOST_NO_CXX11_NUMERIC_LIMITS
  22. #include "boost_no_cxx11_numeric_limits.ipp"
  23. #else
  24. namespace boost_no_cxx11_numeric_limits = empty_boost;
  25. #endif
  26. int main( int, char *[] )
  27. {
  28. return boost_no_cxx11_numeric_limits::test();
  29. }