CuriousThinker··on Show HN: C++ runtime/compile-time detection in constexpr functionsYes that's exactly what's happening under the hood. I'm definitely looking forward to the constexpr operator being accepted!
CuriousThinker··on Show HN: C++ runtime/compile-time detection in constexpr functionsThat is basically it :)
CuriousThinker··on Show HN: C++ runtime/compile-time detection in constexpr functionsThanks for catching that!
CuriousThinker··on Show HN: C++ runtime/compile-time detection in constexpr functionsI discuss the approach more in depth here:http://saadahmad.ca/detecting-evaluation-context-inside-cons...