Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c++0x library availability in any compiler?

Tags:

c++

c++11

The standard will doubtless take years to put in place, which stinks because it looks great. But I was reading it, and at least the library additions (hash maps in particular) would be really useful right away. I noticed in the g++ docs that I can get 4.3 or better and use a flag to request the new features, whatever exists, but I was wondering if there is any way to just get the library. And the fact that lots of the best boost stuff is now built in is really great, finally a decent random number facility built in!

So, are there any compilers which I can use right now which have a reasonably complete library in place, even if it can't use some of the cool new language features like auto?

like image 205
Dov Avatar asked Dec 06 '22 20:12

Dov


1 Answers

If you want the standard library extensions, you can use Boost. The new standard library enhancements were mainly inspired by Boost libraries anyway.

As for supporting compilers, Visual Studio 2010 supports a subset of the C++11 standard, GCC has currently the best support for C++11 and Clang is also adopting the new standard. Don't know about other compilers but I think they will soon follow.

like image 142
Karel Petranek Avatar answered Jan 01 '23 13:01

Karel Petranek