This patch attempts to enable evaluation of all forms of captures (however deeply nested) within constexpr lambdas.
Appreciate the feedback.
Thanks!
Differential D29748
[cxx1z-constexpr-lambda] Implement captures - thus completing implementation of constexpr lambdas. faisalv on Feb 8 2017, 8:59 PM. Authored by
Details
This patch attempts to enable evaluation of all forms of captures (however deeply nested) within constexpr lambdas. Appreciate the feedback. Thanks!
Diff Detail Event Timeline
|
I'm a little concerned that adding this to every CallStackFrame may have a nontrivial impact on the overall stack usage of deeply-recursing constexpr evaluataions. (I'd also like to cache this map rather than recomputing it repeatedly.) But let's try this and see how it goes; we can look into caching the map as a later change.