Re:Elements of Modern C++ Style
by apaprocki on Saturday October 29, 2011 @12:23PM
(#3172172)
Sadly, vendor supplied toolchains for other systems are going to lag far behind. It is not always an option to use GCC/Clang on these boxes. Compilers like Oracle Studio CC, IBM xlC, and HP aCC, etc. So this is not really the definition of "portable" I'm used to. I know I can take any C++98 code and reliably build on any platform/toolchain. It will be a long time before I can say the same about C++11. Even C99 isn't truly "portable" because Microsoft refuses to add all C99 features to MSVC.
[ Parent
| on HN ]
To be honest, I can understand why, as C++98 and C99 are (aside from some trivial features) mostly different and incompatible extensions to C90.
Microsoft don't ship a C compiler
Adding C99 features to their C++ compiler would be nice be probably not cost effective for them
Re:Elements of Modern C++ Style
by maximilianburke on Saturday October 29, 2011 @10:34PM
(#3173468)
Sure they do, it's bundled with their C++ compiler. cl.exe will happily turn on C90 mode and compile files as C, not C++, if you supply the /TC option or your source files have the .c extension.