consider the following template class:
template<bool doit>
class myclass
{
void MyMethod()
{
if(doit)
{
...
}
}
};
myclass<false> m;
m.MyMethod();
Q: Would the optimizer (VC7.0) exclude this function call
since 'doit' is known at compile time and can be resolved?
Regards, DI