Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-06-05 09:18:05


At 02:10 AM 6/5/2003, Daryle Walker wrote:

>On Wednesday, June 4, 2003, at 3:54 PM, Beman Dawes wrote:
>
>> Hum... I just had a thought. Is it possible to detect if wchar_t is a
>> typedef at compile time?
>>
>> Yes, I think so. Won't boost::is_same< unsigned short, wchar_t
>> >::value be true if wchar_t is a typedef, and false if a distinct >
type?
>>
>> I'll do some experiments.
>
>The method you gave may not work. Who says that "unsigned short" is
>the type that "wchar_t" rips off?

That's right in general, of course, but the context here is
<boost/config/compiler/intel.cpp>. For a specific compiler, we know the
typedef'ed type.

--Beman


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