在生产中使用GCC的C ++ 0x模式? [英] Using GCC's C++0x mode in production?

查看:129
本文介绍了在生产中使用GCC的C ++ 0x模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人使用GCC 4.4.0 C ++ 0x 支持生产?我正在考虑使用最新的MinGW,但我不确定它是否成熟。

Is anyone using the GCC 4.4.0 C++0x support in production? I'm thinking about using it with the latest MinGW, but I'm not sure if it's mature enough.

我有兴趣:


  • TR1支持

  • 自动

  • 初始化列表

推荐答案

IMHO,TR1支持和自动可以安全使用。在 auto 的情况下,这是标准中包含的第一个功能之一,是对语言的一个相对较小的更改。因此我没有使用它的问题。

IMHO, TR1 support and auto are safe to use. In the case of auto it was one of the first features to be included into the standard and is a relatively small change to the language. I would therefore have no problem using it.

我会对使用初始化列表有点犹豫。在其他一些论坛上(例如comp.lang.c ++。moderated),有关于他们的行为的问题,以及它们可能更接近于标准的发布。

I would be a bit more hesitant about using initializer lists. On some other forums (eg. comp.lang.c++.moderated) there are questions about their behaviour and its possible that they may change closer to the release of the standard.

这篇关于在生产中使用GCC的C ++ 0x模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆