@journeymanped well, the alternative in the scenarios where it is usually used is to have a full-blown cast. Would you rather your users write an ugly cast in front of a lambda or just explain them the + trick?
New Year Quiz: how many of you C++ buffs know about and used a + in front of a captureless lambda to trigger conversion to function pointer? Like the post if you did! Curious how popular this trick is for surface syntax design of a library...
This is arguably the most innovative and interesting talk from CppCon'18.
LL(1) parsing at compile time as part of building regex state machines at compile time https://t.co/0GRDNRB6H0
C++ has come a long way from C and Simula. https://t.co/0GRDNRB6H0
Bjarne Stroustrup and Gabriel Dos Reis about modules, concepts, and the evolution of C++: https://t.co/AqZcaFKmNw
Towards the end Bjarne tells the story of the good ship Vasa. https://t.co/AqZcaFKmNw
https://t.co/xiB0ISvTXq
How many of the people commenting do you think actually read the interview?
How many of the people commenting do you think clicked through and read the article that the... https://t.co/xiB0ISvTXq