The problem i am facing is for each of my three classes i need the pointers 'element' to point to a specific datatype for each different instances of the same class. All class instances will be stored together in vector arrays. Could someone please help point out what the hell is wrong with my code. This is for a school project so any help would be greatly appreciated.
I am trying to build a graphical user interface application using Openframeworks. Each section, object, and subobject represents an entity on the gui. The pointers 'element' are to point to the specific entity. Which is why i need the pointer for each different instance of the classes to be of a specific datatype using templates. Sorry if any parts of my code does not make sense but i am new to templates.