Should I use C++0x Features Now?

前端 未结 6 975
悲&欢浪女
悲&欢浪女 2021-02-07 01:41

With the official release of VS 2010, is it safe for me to start using the partially-implemented C++0x feature set in my new code?

The features that are of interest to m

6条回答
  •  面向向阳花
    2021-02-07 02:03

    Much of the important things (ie things you would typically use often) are pretty much set in stone. I think the risk of writing code that becomes non-standard is extremely low, especially if you stick to a subset of the spec implemented on current compilers.

    For a good table listing the support for features go here. Personally auto variables, r-value references, and lambdas are pretty much the big features to use and are well supported.

提交回复
热议问题