Function hijack on selective import

rumbu rumbu at rumbu.ro
Wed Dec 27 04:20:49 UTC 2017


On Tuesday, 26 December 2017 at 20:21:11 UTC, Adam D. Ruppe wrote:
> On Tuesday, 26 December 2017 at 19:41:47 UTC, rumbu wrote:
>> "Custom" is a templated struct. I cannot imagine all the 
>> instantiations of Custom to write template specialisations for 
>> each of them.
>
> You can specialize on templated structs generically.
>
> int foo(T : Bar!(X, Y), X, Y)
>
> that kind of thing covers any case of Bar!(X,y)

Thank you, Adam.


More information about the Digitalmars-d-learn mailing list