Nodes are reference types in D, so probably you don't need to use a * for Node. Alternatively use a struct handled by pointer.

"auto content;" can't compile, you need a type, or you have to template Node on T and use it for content.

Bye,
bearophile

Youre right, it compiles now, and the object generated is of the same size. I'm still confusing with C. I have some experience with C experience, so I still have to learn tamplates.

Thaks for the help.

Arjan

Reply via email to