你今天如何使用C ++ 11? [英] How are you using C++11 today?

查看:147
本文介绍了你今天如何使用C ++ 11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是两个部分的问题,第一个是最重要的,现在关注

This is a question in two parts, the first is the most important and concerns now:


  • 你是否遵循C ++ 11的设计和发展?

  • 即使您没有使用任何新功能,这些功能如何影响您目前的选择?


第二部分是一个后续部分,关于新标准,一旦它是最后:

The second part is a follow-up, concerning the new standard once it is final:


  • 您希望立即使用它吗?

  • 显然,编译器支持必须存在,但仍然有同事,辅助工具,和其他因素考虑。

原来真的太夸张了;然而,我仍然对基本问题感兴趣,所以我试图清理它,希望使它可以接受。这似乎是一个比复制的更好的方法 - 即使一些答案回应了辩论的语气,他们仍然适用于他们解决问题的程度,所有的答案是社区属性,以适当清理。

The original really was too argumentative; however, I'm still interested in the underlying question, so I've tried to clean it up and hopefully make it acceptable. This seems a much better avenue than duplicating—even though some answers responded to the argumentative tone, they still apply to the extent that they addressed the questions, and all answers are community property to be cleaned up as appropriate, too.

推荐答案

无法猜测有多少人对新的C ++ 0x感兴趣,我很确定每个谁知道C ++和使用它是好奇,渴望有更多的新闻。

Can't guess how many are interested in the new C++0x and I am pretty sure that everyone who knows C++ and uses it is curious and eager for more news about it.

从g ++实现,我开始使用C ++ 0x的一切新东西。仍然对于小型非便携式项目。
为什么? - 人们不断地告诉我忘记c ++和完全切换到脚本语言,以获得更快的代码开发和忘记内存管理。但是,我最好的经验和知识是在c ++。我知道RAII和使用Boost库每天。现在,新的功能使我写得比以前快得多。知道右值在这里,指针(甚至智能)从代码中消失。 STL算法与lambdas只是摇滚和初始化列表使我很开心。自动关键字是愤怒。

I started using everything new from C++0x as soon as it was implemented from g++. Still for small non portable projects. Why? - People constantly telling me to forget about c++ and switch totally to a scripting language to gain faster code developing and forget about memory management. However, my best experience and knowledge is in c++. I know RAII and use Boost library everyday. Now, the new features make me write much faster then before. Knowing that rvalues are here, pointers(even the smart) disappeared from the code. STL algorithms with lambdas just rock and initilizer lists make me so happy. Auto keyword is furious.

因此,我现在使用C ++ 0x的主要原因是开发速度

So, my primary reason to use C++0x now is speed of development.

这篇关于你今天如何使用C ++ 11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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