Templates class member functions not conditional?

monarch_dodra monarchdodra at gmail.com
Tue Sep 11 08:44:19 PDT 2012


On Tuesday, 11 September 2012 at 15:35:33 UTC, bearophile wrote:
> monarch_dodra:
>
>> I'd argue it's horrible! Why should the coder bother making 
>> these conditional, if calling them would have failed anyways?
>
> If you see, some of those static ifs also have an else clause.
>
> Bye,
> bearophile

The only one I really see is for "empty", but I don't really see 
how that changes anything? That is actually the *only* valid case 
I can see where usage of a static if is legitimate.



More information about the Digitalmars-d-learn mailing list