When I try and compile this code (VS2010) I am getting the following error: error C3499: a lambda that has been specified to have a void return type cannot return a va
error C3499: a lambda that has been specified to have a void return type cannot return a va
You can have more than one statement when still return:
[]() -> your_type {return ( your_statement, even_more_statement = just_add_comma, return_value);}
http://www.cplusplus.com/doc/tutorial/operators/#comma