Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-05-30 06:42:31


>> I think you're skipping something basic: there are limit macros for
wchar_t!
> The macros WCHAR_MIN and WCHAR_MAX are #defined in <cwchar> instead.
>
> Furthermore, you should check the BOOST_NO_INTRINSIC_WCHAR_T macro in
> <boost/config.hpp> to make sure this specialization should be done.
<

Strictly sppeking you are correct, however this is a gcc specific fix, and
WCHAR_MIN/_MAX aren't defined, while wchar_t is always a distinct type for
that compiler (I think).

However I've updated to use WCHAR_MAX/_MIN when available, likewise guarded
against BOOST_NO_INTRINSIC_WCHAR_T.

Thanks!

- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk