Templated opIndex?

Ola Fosheim Grøstad via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 19 06:53:02 PDT 2015


On Saturday, 19 September 2015 at 09:33:02 UTC, OlaOst wrote:
> So it is possible to define a templated opIndex method in a 
> class, but is it possible to use it? If not, should it be 
> allowed to create templated opIndex methods?

test.opIndex!int(0)

works?



More information about the Digitalmars-d-learn mailing list