标准无疑需要花费数年时间才能实施,因为它看起来很棒。 但是我正在阅读它,并且至少库添加(特别是散列图)将马上变得非常有用。 我在g ++文档中注意到,我可以获得4.3或更高版本,并使用标志来请求新功能,无论存在什么,但是我想知道是否有任何方法来获取库。 事实上,现在内置的许多最好的增强功能非常棒,最后还是一个体面的随机数设施!
那么,有没有我现在可以使用的编译器,它有一个相当完整的库,即使它不能使用像auto这样很酷的新语言功能?
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?
最满意答案
带有选项-std=c++0x GCC已经涵盖了C ++ 0x的一个很好的子集。 4.4版本已经非常实用,4.6甚至更多。 它缺少模板别名,但许多非常有用的语言功能以及该库的很大一部分都在那里,并且功能齐全。
这是完整的功能列表 。
GCC with option -std=c++0x already covers a pretty good subset of C++0x. Version 4.4 is already pretty usable, 4.6 even moreso. It's missing template aliases, but many extremely useful language features as well as a very large part of the library is there and fully functional.
Here is the full feature list.
更多推荐
发布评论