From: David Abrahams (dave_at_[hidden])
Date: 2003-06-04 15:53:56
Beman Dawes <bdawes_at_[hidden]> 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