A pointer to abstract template base class?
I cannot figure this out. I need to have an abstract template base class, which is the following: template <class T> class Dendrite { public: Dendrite() { } virtual ~Dendrite() { } virtual void Get(std::vector<T> &o) = 0; protected: std::vector<T> _data; }; Now, I derive from this which specifies exact usage of Dendrite. Now the problem. How do I create a vector of pointers to the base-class with no specific type, which I want to specify by pushing elements to it later? Something like: class Foo { public: ... private: std::vector<Dendrite *> _inputs; //!< Unfortunately, this doesn't work... //