3 ms·
Good luck, last time I tried nested lambdas in VC10 they weren't able to capture local variables from any context except the immediate outer context. This make
by iam 15y ago
Good luck, last time I tried nested lambdas in VC10 they weren't able to capture local variables from any context except the immediate outer context.
This makes doing something like e.g. map(map(...)) extremely annoying.
Javascript (nor does, really, any other proper closure implementation) has no such issues.
- vjeux 15y agoI started developing with Visual Studio but their C++0x implementation is far from complete. Indeed, the following easy code ( http://pastebin.com/bjFWBrJq http://pastebin.com/bjFWBrJq ) does not compile under Visual Studio: "function returning function is not allowed" It works fine in g++ though.