How do you return a subclass instance from a base class method?

Daniel Daniel
Thu Nov 17 06:48:02 UTC 2022


On Thursday, 17 November 2022 at 05:34:49 UTC, zjh wrote:
> On Thursday, 17 November 2022 at 04:25:13 UTC, Daniel Donnelly, 
> Jr. wrote:
>> ...
>
> `crtp`, will it work?

Can't use CRTP, because once you choose a derived class to pass 
into the template system, how do you pass in subclasses of that 
class and so on...


More information about the Digitalmars-d-learn mailing list