vendredi 18 novembre 2016

c++ templated class as its own class as default template type?

How can I achieve this?

template <typename T = Element>
class Element : public NodeType<T> {
    //....
    //....
}

a templated class that the argument has as default the same class

I face this problem because I want a behaviour like following enter image description here

inherit from container but the templates classes change for the new derived class

Aucun commentaire:

Enregistrer un commentaire