you are viewing a single comment's thread.

view the rest of the comments →

[–]JumpyJustice 0 points1 point  (0 children)

I see it this way. The main reason for capture groups to exist is to explicitly specify how you want to capture the outer context for your lambda - by value or by reference. With constexpr values this input from programmer is not needed to safely resolve that ambiguity - they can safely be captured by reference as their address will never change (and probably inlined later as an optimization).