Created
April 5, 2013 19:38
-
-
Save christiannagel/5322007 to your computer and use it in GitHub Desktop.
C++11 lambda returning a value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto l2 = [] { | |
return 42; | |
}; | |
int x2 = l2(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment