[cfe-dev] Clang C++0x extensions
Douglas Gregor
dgregor at apple.com
Thu Apr 28 10:00:02 PDT 2011
On Apr 28, 2011, at 9:57 AM, Fletcher, John P wrote:
> Doug
>
> Thank you for that.
>
> (1) The patch seems to be oriented to an Apple installation.
It should work on any libstdc++ 4.4; they don't change much from one platform to another.
> Do those changes mean the headers won't work with g++ any more?
No.
> (2) Unfortunately, even including <typeinfo> fails as it includes <exception> before it defines type_info.
>
> The solution for me is to put this in my code before including <iostream>:
>
> namespace std {
> class type_info;
> }
>
> That at least fixes the first bug.
That's effectively what GCC does in the compiler.
- Doug
More information about the cfe-dev
mailing list