This question already has an answer here:
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