|
Boost Users : |
Subject: Re: [Boost-users] boost serialization not working unless you have at least one virtual function in base
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-09 10:30:53
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.
> Is this some "silly" optimization done by C++ compilers? Not
> generating vtables?
The compiler only generates a vtable for polymorphic types.
In Christ,
Steven Watanabe
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