Template Inheritance

Jonathan M Davis jmdavisProg at gmx.com
Sat Feb 18 17:25:39 PST 2012


On Sunday, February 19, 2012 01:23:13 %u wrote:
> I think I got it! This seems to work:
> 
> class Derived {
>     //Pulls in all the template forms in the base class
>     template get(args ...) {
>         alias Base.get!args get;
>     }
> 
>     //Create new versions of get() here.
> }

That seems like it could work.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list