This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with dynamic_cast
- From: Momchil Velikov <velco at fadata dot bg>
- To: Markus Gerwinski <markus at gerwinski dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 25 Mar 2003 17:12:19 +0200
- Subject: Re: Problem with dynamic_cast
- References: <20030325145526.GA20393@leia.local>
>>>>> "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