Boost logo

Boost :

Subject: Re: [boost] [static_if] Is there interest in a `static if` emulation library?
From: Robert Ramey (ramey_at_[hidden])
Date: 2014-09-01 01:09:24

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:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at