Hacker News new | past | comments | ask | show | jobs | submit login

What is the current state of C++11 support in major compilers (e.g. G++, clang, MSVC)



It's excellent in GCC and clang. GCC 4.8.1 was feature complete.

GCC C++11 status: http://gcc.gnu.org/projects/cxx0x.html

Clang: 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.


GCC 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.


Good point, I guess that table only shows language features.

Here's the library features table: http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#s...

Not feature complete if you take that into account, I'm afraid.


Microsoft should join the LLVM group and just port any MSVC extension not supported in clang over already. :-)


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.


Full in g++ 4.8 and Clang 3.3 with the exception of <regex>. MSVC is still behind.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: