vendredi 21 décembre 2018

How to define methods in templated abstract base class that will be used by the derived class? [duplicate]

I am trying to create templated abstract base class. This class will have couple of pure virtual functions. It will also have two methods that are defined in it.

Then I derive from this templated abstract base class (I derive by specializing the template) and call those two methods that were defined in the templated abstract base class from the overloaded functions.

When I do this and try to compile I get undefined reference to. I am using cmake for building. Compilation works when I remove those two methods that were defined in base class.

Aucun commentaire:

Enregistrer un commentaire