boost_no_cxx11_numeric_limits.ipp 737 B

12345678910111213141516171819202122232425262728293031
  1. // (C) Copyright Vicente J. Botet Escriba 2010.
  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 most recent version.
  6. // MACRO: BOOST_NO_CXX11_NUMERIC_LIMITS
  7. // TITLE: static function lowest() in numeric_limits class <limits>
  8. // DESCRIPTION: static function numeric_limits<T>::lowest() are not available for use.
  9. #include <limits>
  10. namespace boost_no_cxx11_numeric_limits{
  11. int f()
  12. {
  13. // this is never called, it just has to compile:
  14. return std::numeric_limits<int>::lowest();
  15. }
  16. int test()
  17. {
  18. return 0;
  19. }
  20. }