Beman Dawes <[EMAIL PROTECTED]> writes:

> 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?

Yes, but you can't use the result for conditional compilation in the
traditional sense.  Template instantiation comes after preprocessing
;-)

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to