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 20namespace boost_no_intrinsic_wchar_t{ 21 22template <class T> 23struct is_int{ int i; }; 24 25template <> struct is_int<unsigned char>{ int i; }; 26template <> struct is_int<signed char>{ int i; }; 27template <> struct is_int<char>{ int i; }; 28template <> struct is_int<unsigned short>{ int i; }; 29template <> struct is_int<short>{ int i; }; 30template <> struct is_int<unsigned int>{ int i; }; 31template <> struct is_int<int>{ int i; }; 32template <> struct is_int<unsigned long>{ int i; }; 33template <> struct is_int<long>{ int i; }; 34template <> struct is_int<wchar_t>{ int i; }; 35 36int test() 37{ 38 return 0; 39} 40 41} 42 43 44 45 46