3 ms·
[](auto &&a, auto &&b) { return a.id() < b.id(); }; I vary much prefer the version above than the one author proposes for replacement. C++ is a beast as it is.
by FpUser 7y ago
[](auto &&a, auto &&b) { return a.id() < b.id(); };
I vary much prefer the version above than the one author proposes for replacement. C++ is a beast as it is. No reason to introduce more miracles there. My opinion of course
- TheDong 7y agoI dunno, it's kinda consistent. Braces are optional for single expression bodied if statements too. It doesn't really seem all that strange for them to be optional for single expression lambdas.