]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_ll_limits.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_ll_limits.ipp
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_LONG_LONG_NUMERIC_LIMITS
9 // TITLE: std::numeric_limits<long long>
10 // DESCRIPTION: The C++ implementation does not provide the a specialisation
11 // for std::numeric_limits<long long>.
12
13 #include <limits>
14
15 namespace boost_no_long_long_numeric_limits{
16
17 int test()
18 {
19 #ifdef __GNUC__
20 __extension__
21 #endif
22 typedef long long llt;
23 #ifdef __GNUC__
24 __extension__
25 #endif
26 typedef unsigned long long ullt;
27 if(0 == std::numeric_limits<llt>::is_specialized) return -1;
28 if(0 == std::numeric_limits<ullt>::is_specialized) return -1;
29 return 0;
30 }
31
32 }
33
34
35
36
37