Is there a way to use function addresses in constant expressions?
void foo()
{}
int main()
{
static_assert(&foo, "test error");
}
This won't compile.
error C2057: expected constant expression
The intention behind this is that I want to compare two function addresses at compile time.