You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the adoption of P1169 (static operator()), lambdas with no capture can have a static call operator. But only if someone explicitly writes that in code. That seems hostile to new code, which now has to write more annotation just in case it might matter for performance.
Proposed change:
Consider making the static-ness of the call operator implementation-defined, so that compilers can make this a switch.
The text was updated successfully, but these errors were encountered:
jensmaurer
changed the title
US 7.5.5 [expr.prim.lambda] Static call operator for lambdas
US 12-041 7.5.5 [expr.prim.lambda] Static call operator for lambdas
Nov 3, 2022
With the adoption of P1169 (static operator()), lambdas with no capture can have a static call operator. But only if someone explicitly writes that in code. That seems hostile to new code, which now has to write more annotation just in case it might matter for performance.
Proposed change:
Consider making the static-ness of the call operator implementation-defined, so that compilers can make this a switch.
The text was updated successfully, but these errors were encountered: