Let this() figure out T implicitly?

bearophile bearophileHUGS at lycos.com
Fri Feb 17 04:32:11 PST 2012


kraybourne:

> Then it compiles. Is it possible to have this() figure out the type some 
> way?

Usually people write a small global function helper.


> (Side note: What _does_ that error message mean? I don't get it.)

I think the meaning is: when a class template is not yet instantiated, it's not a type yet.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list