Suppose we create the following function:
template <int T>
void test_function()
{
if (T == 0) {
}
}
Now let's use test_function<1>()
. Is there a standard behavior for its compilation? Will compilers interpret test_function
as an empty function, or will the comparison 1 == 0
always be made at run-time?