Search code examples
c++standards-compliance

Are there any fully conforming C++ implementations?


So I was trying out some features of C++0x using GCC, but I also wanted to make sure the code could be compiled with a standard C++ compiler. So I was playing around with the __cplusplus macro with ifdefs to exclude C++0x code when it wasn't asked for.

I found that the value of __cplusplus wasn't 199711L, it was 1! After a little bit of googling, I found this where it says GCC isn't a fully conforming implementation.

Are there any fully conforming implementations? I know of clang, gcc, and msvc. GCC isn't a fully conforming implementation, are clang and msvc?


Solution

  • It is unlikely that any compilers other than Comeau will be fully compliant in the near future due to the prohibitive complexity of implementing the export keyword. For reasons why, see Why We Can't Afford Export.