Is there any way to compile this code such as inheritance, overload…?
No. Not as you are trying to at least.
mylist *y = new mylist(); //....how?
isn’t valid since you have to provide a template parameter for mylist
like mylist<MyType>
.
You’re probably looking for template specializations.
6
solved c++ use template class [closed]