C++ guys hate static_if?
Walter Bright
newshound2 at digitalmars.com
Thu Mar 14 23:47:08 PDT 2013
On 3/14/2013 11:36 PM, Dmitry Olshansky wrote:
> 15-Mar-2013 01:58, Andrei Alexandrescu пишет:
>> On 3/14/13 4:37 PM, Dmitry Olshansky wrote:
>>> Point taken. That doesn't detract us from:
>>> a) fixing issues with -cov
>>
>> Yes please (are there bugzilla entries etc)?
>
> template powerup(T) //usable as template mixin too
> {
> //imagine more constraints
> static if(size_t.sizeof == 4)
> alias bleh = blah;
> else
> alias bleh = oldBlah;
> //...
> }
>
> Now first mixin template don't get counted at all (even code within).
> Then declarations are ignored and you'll never know which ones were ever looked at.
-cov only counts executable lines. The above are not executable - I don't see
any way to make them work with -cov.
More information about the Digitalmars-d
mailing list