任何编译器的c ++ 0x库可用性?(c++0x library availability in any compiler?)

编程入门 行业动态 更新时间:2024-10-26 22:19:52
任何编译器的c ++ 0x库可用性?(c++0x library availability in any compiler?)

标准无疑需要花费数年时间才能实施,因为它看起来很棒。 但是我正在阅读它,并且至少库添加(特别是散列图)将马上变得非常有用。 我在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.

更多推荐

本文发布于:2023-08-05 04:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1427970.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可用性   编译器   library   availability   compiler

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!