Boost logo

Boost :

Subject: Re: [boost] [static_if] Is there interest in a `static if` emulation library?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2014-09-08 06:06:24


On 01/09/2014 17:00, Robert Ramey wrote:

> It does raise an interesting question though. Wouldn't it be a good thing
> for the compiler to totally skip syntax checking for branches known to
> be false at compile time - perhaps as a release mode option?

There are rules as to how parsing, name lookup, instantiation contexts
and template parameter substitution work.
Your "good thing" would not be compatible with any of them.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk