How are you using C++11 today? [closed]

2019-01-14 15:04发布

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

  • Are you following the design and evolution of C++11? What blogs, newsgroups, committee papers, and other resources do you follow?
  • Even where you're not using any new features, how have they affected your current choices?
  • What new features are you using now, either in production or otherwise?

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

  • Do you expect to use it immediately? What are you doing to prepare for C++11, other than as listed for the previous questions?
  • Obviously, compiler support must be there, but there's still co-workers, ancillary tools, and other factors to consider. What will most affect your adoption?

Edit: 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.

15条回答
一纸荒年 Trace。
2楼-- · 2019-01-14 15:33

No, but I would like to, especially for the lambda functionality.

查看更多
混吃等死
3楼-- · 2019-01-14 15:36

I'm not using C++0x today, because it will lead to losing code portability. Because there is no C++0x Standard today.

Answer: No
Reason: code portability

查看更多
4楼-- · 2019-01-14 15:38

unordered_map. It should've been obvious when map was originally specified that not everyone would want to pay the cost of sorting their associative container keys but, oh well, at least we finally have a completely standardised STL container for it.

I'm also using the threading library and other stuff. Haha, I'm an early adopter! I'm not employed and I don't work directly with anyone so I can basically do as I like with these things. :)

查看更多
Melony?
5楼-- · 2019-01-14 15:39

Yes when toying arround on my own code that doesn't have the pretention to go out in the nature.

No when I code something that some people will use on older compilers.

查看更多
神经病院院长
6楼-- · 2019-01-14 15:42

I am using static_assert, decltype, and, occasionally, r-value references

查看更多
等我变得足够好
7楼-- · 2019-01-14 15:45

Depends. I'm getting ready to use certain C++0x features in my master's thesis (although so far I've stuck with C++03 compilers mostly while waiting for VS2010b2)

I wouldn't use it in actual professional production work yet, though. For that, I'd want to wait until the standard had been finalized, and in the case of MSVC at least, until the compiler had been released in a non-beta version.

查看更多
登录 后发表回答