On Tuesday, 26 January 2021 at 04:39:07 UTC, Jack wrote:
Can I pass the base class type thought template parameter? something like this:[...]
You have it almost right: class C(alias T) //.... Template is not type but symbol.
vitamin via Digitalmars-d-learn Tue, 26 Jan 2021 06:15:41 -0800
On Tuesday, 26 January 2021 at 04:39:07 UTC, Jack wrote:
Can I pass the base class type thought template parameter? something like this:[...]
You have it almost right: class C(alias T) //.... Template is not type but symbol.