27 Aug
2014
27 Aug
'14
11:32 a.m.
Mikael Persson wrote:
$5.1.2/2: "A lambda expression shall not appear in an unevaluated operand" ... That pretty much closes off your proposed avenue, doesn't it?
Only in the case of metaprograms. The proposed technique still may be used in a place where a lambda expression could be evaluated, so when it's passed as a function parameter and the return type is deduced in compile-time. Regards, Adam