C++ guys hate static_if?

Jesse Phillips Jessekphillips+D at gmail.com
Mon Mar 11 16:17:33 PDT 2013


On Monday, 11 March 2013 at 21:31:53 UTC, Timon Gehr wrote:
>>     static if(is(typeof(var) == int))
>>         int j = 22;
>
> What is the point? Your example code does not make any 
> declaration inside the static if condition.

I'm not sure what your definition of declaration is, but that 
looks like one to me, with instantiation of course.


More information about the Digitalmars-d mailing list