class - Linker/Inheritance/Virtual function problems -


There is a problem inheriting from a template class.
Something looks like this:

  template & lt; Typename type & gt; Class support {security: ... public ... virtual boole func1 (type var1); };   

// This class is not derived from the template class, rather than the template, it does not know that its problem is

  class is derived: public base & Lt; Type_spec_1 & gt; {Protected: ... public: ... bool func1 (type_spec_1); // I want to override the function; }; In   

// .cpp, I try to scope to work, it compiles, but it

  bool derived :: func1 ( Type_spec_1 type) {description is false; };   

Linker gives me an error in this format: LNK2001, unresolved symbol base :: func1 (type_spec_1); As it does not appear that "derived" == base ""
How do I provide appropriate syntax for this, if this is also possible ?????

Do not you have to do something like this?

  template & lt; Typename type & gt; Class base {security: ... public ... // provide implementation to override Virtual Bull func1 (type var1) {return (bool) 0; }};   

Because class derived: public base & lt; Type_spec_1 & gt; is called derived a type base < Type_spec_1 & gt; , but base & lt; Type_spec_1 & gt; The definition of type of is not fully implemented?

Comments