$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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