constexpr bool bFooOrBar = true;
void test()
{
#if (bFooOrBar ==true)
cout << "foo" << endl;
#else
cout << "bar" << endl;
#endif
}
It wouldn't work for expecting output foo
. I know it works for an ordinary if else
statement. But why not for the precompile macro #if?