Home Dashboard Directory Help
Search

Lambda declaration cannot access closure variables when defined as a member function of an inline class by Adaptation


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 581680
Opened: 7/30/2010 10:30:05 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

A Lambda function declared within a member function of an inline class complains that it cannot access the closure variables. Example given in steps to reproduce.

Notes:
* Moving the class outside of the function declaration compiles fine
* Having no arguments for the lambda compiles fine
Details
Sign in to post a comment.
Posted by Microsoft on 8/1/2010 at 10:14 PM
Thanks for your feedback. We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 7/30/2010 at 5:10 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
main.cpp 7/30/2010 331 bytes