
1 Sep
2014
1 Sep
'14
5:09 a.m.
pfultz2 wrote
since the condition is known at compile time, can't the optimizer be counted on to compile only the corresponding code? Why doesn't this give the same effect as the proposal?
Both branches still have to compile even if the compiler determines it is dead code.
Paul
So what, the final executables would be equivalent if not identical. -- View this message in context: http://boost.2283326.n4.nabble.com/static-if-Is-there-interest-in-a-static-i... Sent from the Boost - Dev mailing list archive at Nabble.com.