| Line | |
|---|
| 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 | |
|---|
| 6 | // See http://www.boost.org/libs/config for most recent version. |
|---|
| 7 | |
|---|
| 8 | // MACRO: BOOST_NO_LIMITS |
|---|
| 9 | // TITLE: <limits> |
|---|
| 10 | // DESCRIPTION: The C++ implementation does not provide the <limits> header. |
|---|
| 11 | |
|---|
| 12 | #include <limits> |
|---|
| 13 | |
|---|
| 14 | namespace boost_no_limits{ |
|---|
| 15 | |
|---|
| 16 | int test() |
|---|
| 17 | { |
|---|
| 18 | if(0 == std::numeric_limits<int>::is_specialized) return -1; |
|---|
| 19 | if(0 == std::numeric_limits<long>::is_specialized) return -1; |
|---|
| 20 | if(0 == std::numeric_limits<char>::is_specialized) return -1; |
|---|
| 21 | if(0 == std::numeric_limits<unsigned char>::is_specialized) return -1; |
|---|
| 22 | if(0 == std::numeric_limits<signed char>::is_specialized) return -1; |
|---|
| 23 | if(0 == std::numeric_limits<float>::is_specialized) return -1; |
|---|
| 24 | if(0 == std::numeric_limits<double>::is_specialized) return -1; |
|---|
| 25 | if(0 == std::numeric_limits<long double>::is_specialized) return -1; |
|---|
| 26 | return 0; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.