Error at compiling virtual function call in constructor
-
I want to call pure virtual function in constructor of BASE class, function will be defined in derived class.
class Derived: class Base { firtual void f() {}; } template class Base { Base() { f(); }; firtual void f() =0; };
Error at link; How to correct? Thanks -
I want to call pure virtual function in constructor of BASE class, function will be defined in derived class.
class Derived: class Base { firtual void f() {}; } template class Base { Base() { f(); }; firtual void f() =0; };
Error at link; How to correct? Thanks -
I want to call pure virtual function in constructor of BASE class, function will be defined in derived class.
class Derived: class Base { firtual void f() {}; } template class Base { Base() { f(); }; firtual void f() =0; };
Error at link; How to correct? ThanksCheck this: http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.3[^] Tomasz Sowinski -- http://www.shooltz.com
signature has expired
-
Check this: http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.3[^] Tomasz Sowinski -- http://www.shooltz.com
signature has expired
-
Check this: http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.3[^] Tomasz Sowinski -- http://www.shooltz.com
signature has expired
Welcome back, Tomasz :cool:
-
Welcome back, Tomasz :cool:
Thanks, Nemanja. I was just passing by and had a look at good ol' VC board :) Tomasz Sowinski -- http://www.shooltz.com