Nested Lambda capture issue

后端 未结 2 1660
面向向阳花
面向向阳花 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:44

    It's not conformant to the final draft, but it is conformant to the wording at the time at which they were implemented- i.e., it's not really a VS defect but neither is it exactly Standard. The next version, colloquially known as vNext, will have an implementation updated to use the latest wording.

提交回复
热议问题