Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • constexpr functions are allowed to be recursive, so there is no guarantee they always halt. Implementations are allowed and intended to give up evaluating them after some recursion depth is reached (the standard suggests a minimum of 512). Commented Dec 30, 2011 at 21:01
  • @RichardSmith: While it is easy to put a limit on recursion, I don't think it's as easy to put a meaningful limit on mostly unrestricted evaluation. Commented Jan 8, 2012 at 17:24