阅读背景:

C++11 lambda capture by value captures at declaration point

来源:互联网 

The code below prints 0, but I expect to see a 1. My conclusion is that lambda functions are not invoked by actually passing captured parameters to the functions, which is more intuitive. Am I right or am I missing something?The code below prints 0, but I expect to see a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: