How does C++ handle constexpr evaluation for non-static member function pointers on runtime objects?
The code compiles and runs, but I’m trying to understand how the expression (obj.*funcPtr)(12)
can be evaluated at compile-time when obj
is not declared as constexpr
. I would expect that this might not meet the standard requirements for compile-time evaluation.