4 ms·
What is the current state of C++11 support in major compilers (e.g. G++, clang, MSVC)
by sheetjs 13y ago
What is the current state of C++11 support in major compilers (e.g. G++, clang, MSVC)
- en4bz 13y agoFull in g++ 4.8 and Clang 3.3 with the exception of <regex>. MSVC is still behind.
- agwa 13y agoIt's excellent in GCC and clang. GCC 4.8.1 was feature complete. GCC C++11 status: http://gcc.gnu.org/projects/cxx0x.html http://gcc.gnu.org/projects/cxx0x.html Clang: http://clang.llvm.org/cxx_status.html http://clang.llvm.org/cxx_status.html MSVC is not as good. I don't have any links handy, but anecdotally it still fails to compile some of my code that compiles fine in GCC.
- jarjoura 13y agoMicrosoft should join the LLVM group and just port any MSVC extension not supported in clang over already. :-)
- jzwinck 13y agoGCC 4.8 (and even earlier) has <regex> but it doesn't actually work. I guess it will work in 4.9, but haven't gotten to try it. This glaring omission somehow didn't make the list you linked, which is otherwise exceedingly comprehensive.
- agwa 13y agoGood point, I guess that table only shows language features. Here's the library features table: http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.200x http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#s... Not feature complete if you take that into account, I'm afraid.
- elnate 13y agohttp://cpprocks.com/c11-compiler-support-shootout-visual-studio-gcc-clang-intel/ http://cpprocks.com/c11-compiler-support-shootout-visual-stu... A little out dated but a good starting point. I'm using gcc 4.6.1 and am loving the C++11 features, only thing I've noticed it missing is implicit capture of this in lambdas.