Nested Lambda capture issue

后端 未结 2 1662
面向向阳花
面向向阳花 2021-02-13 20:23

I have compiled this using Visual Studio 2010 compiler and it has compiler error issues on nested lambda capturing the variables captured already by the first lambda:

         


        
2条回答
  •  广开言路
    2021-02-13 20:40

    This is a known limitation of the Visual Studio 2010 C++ compiler. Here is the connect issue tracking it

    • https://connect.microsoft.com/VisualStudio/feedback/details/725134/nested-lambda-expressions-can-not-capture-entities-of-enclosing-lambda-expressions

    It's currently marked as fixed in the next version

提交回复
热议问题