Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/config/test/boost_no_limits.ipp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 1.0 KB
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
14namespace boost_no_limits{
15
16int 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.