In the code below the compiler complains about its own implicit ctor for the inner lambda not being matched to the call signature.This somehow has to do with the implicit const added to the x ctor parameter of the outer lambda not being added when the ctor for the inner lambda is built...A workaround exist: Make the outer lamdba mutable.void func(){ int x; int y; [&, x]()->void { [&]() { x; y; }; };}
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...