阅读背景:

为什么我不能将constexpr与lambda函数一起使用?

来源:互联网 

I need an explanation for this. How does lambda differ from others function to it don't be allowed? Is this a nonsense to be not part of C++ standard? for example, I wanted to write a "nested" function in C++ but like it isn't possible to do directly I do use lambda instead of. This function does a very small job: take a single int parameter and multiply with some values and returns. This values are locals to where lambda function is defined and all them are I need an explanation for this. How does lambda




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

分享到: