Created
August 27, 2015 18:23
-
-
Save thiagomg/52a2cf48ed44739fd81d to your computer and use it in GitHub Desktop.
Lambda decltype
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
//More restrict | |
auto f2 = [&b](auto v) -> decltype(v*b) { | |
return v*b; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment