|
Boost Users : |
Subject: Re: [Boost-users] boost serialization not working unless you have at least one virtual function in base
From: Luca Cappa (luca.cappa_at_[hidden])
Date: 2009-02-09 10:57:58
Hello,
On Mon, 09 Feb 2009 16:30:53 +0100, Steven Watanabe <watanabesj_at_[hidden]>
wrote:
> AMDG
>
> Martin Seiler wrote:
>> Does anybody know why this is the case?
>>
>> Is there a way to make a class "polymorphic" without adding a dummy
>> virtual function?
>
> No there isn't.
Well, you could add a virtual destructor, which is not "dummy" at all :)
and I hope it does not hurt you either
Luca
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net