C++14 introduced generic lambdas. While skimming through the related proposals I found N3418 by Faisal Vali, Herb Sutter and Dave Abrahams.
Therein section 2.2 is titled :
2.2 Allow the use of familiar template syntax in lambda expressions
and the following code examples include snippets like this one
[]<int N>(int (&a)[N]) {}
Since such things fail to compile (with gcc, clang and Visual Studio), some questions come up :
- Is this an implementation issue ?
- What stopped this part from being accepted ?
- Which is the proposal that finally brought generic lambdas into the language ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…