This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with dynamic_cast


>>>>> "Markus" == Markus Gerwinski <markus at gerwinski dot de> writes:

    Markus>   test.cc: In function `int main(int, char**)':
    Markus>   test.cc:15: cannot dynamic_cast `schale' (of type `class Pruzzel*') to type `
    Markus>      class Proe*' (source type is not polymorphic)

It needs at least one ``virtual'' function, e.g.

  ``virtual ~Pruzzel () {}''.  

~velco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]