[cfe-dev] __is_pod documentation is misleading

Bo Persson bop at gmb.dk
Wed Feb 27 08:22:12 PST 2013


I believe this originally was a bug that MS chose to document rather than fix. 

IIRC, the Boost maintainers have noticed this before.


Bo Persson


27 feb 2013 kl. 00:45 skrev Jeff Walden <jwalden+clang at mit.edu>:

> http://clang.llvm.org/docs/LanguageExtensions.html claims __is_pod is also supported by GNU and Microsoft.  That's true, but the Microsoft implementation has different semantics -- it's false for fundamental types.
> 
> http://msdn.microsoft.com/en-us/library/vstudio/ms177194%28v=vs.80%29.aspx
> 
> It may be worth noting this difference so people familiar with clang/GNU __is_pod semantics don't find out the hard way that MSVC's are different.  I wouldn't be surprised if other traits have different MSVC semantics, given this surprising difference, but I only checked __is_pod.
> 
> Jeff
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list