mirror of
https://github.com/boostorg/type_traits.git
synced 2025-07-31 13:07:22 +02:00
Disable wchar_t usage when it's not available.
See https://svn.boost.org/trac/boost/ticket/11870.
This commit is contained in:
@ -35,12 +35,16 @@ template<> struct arithmetic_type<2>
|
||||
typedef char (&result_type) [2];
|
||||
};
|
||||
|
||||
#ifndef BOOST_NO_INTRINSIC_WCHAR_T
|
||||
|
||||
template<> struct arithmetic_type<3>
|
||||
{
|
||||
typedef wchar_t type;
|
||||
typedef char (&result_type) [3];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// There are five standard signed integer types:
|
||||
// “signed char”, “short int”, “int”, “long int”, and “long long int”.
|
||||
|
||||
@ -170,7 +174,9 @@ private:
|
||||
|
||||
static arithmetic_type<1>::result_type select( arithmetic_type<1>::type );
|
||||
static arithmetic_type<2>::result_type select( arithmetic_type<2>::type );
|
||||
#ifndef BOOST_NO_INTRINSIC_WCHAR_T
|
||||
static arithmetic_type<3>::result_type select( arithmetic_type<3>::type );
|
||||
#endif
|
||||
static arithmetic_type<4>::result_type select( arithmetic_type<4>::type );
|
||||
static arithmetic_type<5>::result_type select( arithmetic_type<5>::type );
|
||||
static arithmetic_type<6>::result_type select( arithmetic_type<6>::type );
|
||||
|
Reference in New Issue
Block a user