|
Boost Users : |
Subject: Re: [Boost-users] [Serialization] Strange giant warning
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-03-10 22:40:00
On Tue, Mar 9, 2010 at 6:38 AM, Avi Bahra <avibahra_at_[hidden]> wrote:
> This is caused by a bug in the boost serialisation, well at least in 1.39
> Where is assumes that shared ptr must be polymorphic
> I have already reported a similar problem.
> i.e
Oh I *SO* hate that bug, so very much.
On Tue, Mar 9, 2010 at 6:38 AM, Avi Bahra <avibahra_at_[hidden]> wrote:
>>> It looks like if we are serialising via a base ptr, and the
>>> base class is serialising concrete data member  via a shared ptr,
>>> it has assumed that the type must be polymorphic. Â This does
>>> not seem right to me ?
> The hacky way to stop your warning message would be add a dummy virtual
> function.
Which I had to do, which added a virtual table, which bloats the size
of my small classes needlessly...
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