boost_no_ll_limits.ipp 904 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // (C) Copyright John Maddock 2001.
  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_LONG_LONG_NUMERIC_LIMITS
  7. // TITLE: std::numeric_limits<long long>
  8. // DESCRIPTION: The C++ implementation does not provide the a specialisation
  9. // for std::numeric_limits<long long>.
  10. #include <limits>
  11. namespace boost_no_long_long_numeric_limits{
  12. int test()
  13. {
  14. #ifdef __GNUC__
  15. __extension__
  16. #endif
  17. typedef long long llt;
  18. #ifdef __GNUC__
  19. __extension__
  20. #endif
  21. typedef unsigned long long ullt;
  22. if(0 == std::numeric_limits<llt>::is_specialized) return -1;
  23. if(0 == std::numeric_limits<ullt>::is_specialized) return -1;
  24. return 0;
  25. }
  26. }