Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2002-07-29 10:57:30


>From: "John Maddock" <john_maddock_at_[hidden]>

> > I see that boost/config/compiler/intel.hpp does it like this:
> >
> > # ifndef _NATIVE_WCHAR_T_DEFINED
> > # define BOOST_NO_INTRINSIC_WCHAR_T
> > # endif
> >
> > Where does "_NATIVE_WCHAR_T_DEFINED" come from? I haven't found it in
the
> > Intel C++ docs, at least. It's not defined anywhere else in the library,
> > either.
>
> That's actually a VC7 macro that's set when /Zc:wchar_t is used, we were
> told that Intel were using that as well, but if you could comfirm it one
way
> or another it would certainly help. Another possible candidate is
_WCHAR_T
> which is mention in the docs for the EDG frontend.

I've tested the following ones:

_NATIVE_WCHAR_T_DEFINED
_WCHAR_T_DEFINED
_WCHAR_T

Only _WCHAR_T_DEFINED is defined, both for VC6 and Intel C++ 6.0 (and with
or without the "/Zc:wchar_t" switch). Moreover, this means, as Gennaro
pointed out, that this macro is set whether or not it's an intrinsic type,
and not just a typedef for unsigned short, which isn't particularly helpful.

Regards,

Terje


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