How to pass voldemort types to functions

kerdemdemir via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 12 15:46:30 PDT 2015


> void foo(R)(R range)
>     if (isInstanceOf!(Tuple, ElementType!R))    // <-- optional
> {
> 

Ali thanks a lot. I don't believe I didn't simply try your way. 
It works.
I am also happy to learn optional static if . Your examples are 
really useful for me.

Next time I will share whole code.

Thanks a lot.


More information about the Digitalmars-d-learn mailing list