Is there a way to achieve different behaviour of a constexpr function in the compilation phase and at runtime?
constexpr
Consider the following example (using a theor
No, there is no such way.
Sorry.
N3583 is a paper proposing changes to allow what you are asking for.