Trouble with SList for generic Stack class

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 2 15:30:28 PDT 2017


On Friday, 2 June 2017 at 22:21:07 UTC, Mark wrote:
> Hello,
>
> I am trying to make a class that can accept any type as an 
> argument.
>
> [...]

the stack class needs to be a template as well.
This is not java ;)


More information about the Digitalmars-d-learn mailing list