C++10 vc10 的特性

文章介绍了C++0x核心语言特性相关内容,链接了关于lambdas、auto、static_assert等特性的文章。阐述了“rvalue references v1”与“v2”的区别,以及“lambdas v1.0”和“v1.1”的差异,还提到VC支持存在不完整或非标准形式的情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://blogs.msdn.com/b/vcblog/archive/2010/04/06/c-0x-core-language-features-in-vc10-the-table.aspx

 

While I cant explain all of these features here, Ican link to my posts about lambdas v1.0, auto, and static_assert, rvalue references v1,and decltype, and I can decode some of the more mysterious cells in this table.

 

The difference between what i call rvalue references v1 and rvale references v2  is that v1 allowed rvalue references to bind to lvalues, whle v2 forbids this. N2844 Fixing a Saftype Problem with Rvalue References describes the reasons for this change. It was recently voted into the C++0x Working Paper, and there was enough time for us to implement it in VC10. Importantly, rvalue references v2 doesnt affect the move semantics or perfect forwarding patterns, but it does affect the implementtation of std::move9) and std::forward<T>(), and experts need to know aoubt this change.

 

The difference between what I call lambdas v1.0 and lambdas v1.1 is mush less significant. After lambdas were voted into the Working Paper and implemented in VC10, N2927 New wording for C++0x Lambdas was additionlay ltoted into the WOrking Parper, clarifying subtleties like what happends with nested lambdas.l Common use of lambdas aren;n really affected , but unusual uses may be.

 

The Partial entries indicate that VCs support is either incomplete(), or in a non-Standard from ()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值