]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_wchar_t.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_wchar_t.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_INTRINSIC_WCHAR_T
9 // TITLE: intrinsic wchar_t
10 // DESCRIPTION: The C++ implementation does not provide wchar_t,
11 // or it is really a synonym for another integral type.
12 // Use this symbol to decide whether it is appropriate
13 // to explicitly specialize a template on wchar_t if there
14 // is already a specialization for other integer types.
15
16 #ifndef BOOST_NO_CWCHAR
17 #include <wchar.h>
18 #endif
19
20 namespace boost_no_intrinsic_wchar_t{
21
22 template <class T>
23 struct is_int{ int i; };
24
25 template <> struct is_int<unsigned char>{ int i; };
26 template <> struct is_int<signed char>{ int i; };
27 template <> struct is_int<char>{ int i; };
28 template <> struct is_int<unsigned short>{ int i; };
29 template <> struct is_int<short>{ int i; };
30 template <> struct is_int<unsigned int>{ int i; };
31 template <> struct is_int<int>{ int i; };
32 template <> struct is_int<unsigned long>{ int i; };
33 template <> struct is_int<long>{ int i; };
34 template <> struct is_int<wchar_t>{ int i; };
35
36 int test()
37 {
38 return 0;
39 }
40
41 }
42
43
44
45