Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2004-05-01 05:40:30


> Actually, it could be as simple as
>
> #if defined(BOOST_NO_INTRINSIC_WCHAR_T)
> template< typename T > struct assert_no_intrinsic_wchar_t;
> template<> struct assert_no_intrinsic_wchar_t<wchar_t> { typedef void
type; };
> typedef assert_no_intrinsic_wchar_t<unsigned short>::type
assert_no_intrinsic_wchar_t_;
> #else
> template< typename T > struct assert_intrinsic_wchar_t;
> template<> struct assert_intrinsic_wchar_t<wchar_t> {};
> template<> struct assert_intrinsic_wchar_t<unsigned short> {};
> #endif
>
> With an appropriate comment as suggested by Christopher, it'd be a
noticable
> improvement over the status quo.

Good thinking, will do.

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net