@Xeo alright, if you recall we have another trick at our disposal: building an array of continuations into which we jump. pros: no default construction, no silly exception tricks; cons: there’s imo a higher risk of confusing the compiler regarding optimizations compared to hand-rolled recursion.
looks good in the trivial case, but even that is very brittle: remove a
constexpr
here and there and the generated code changes