$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Memory] Problems when calling virtual class function
From: Eric J. Holtman (eric_at_[hidden])
Date: 2010-07-11 17:09:56
On 7/11/2010 2:28 PM, Marshall Clow wrote:
>
> If you declare "fun" as virtual in the base class, it needs to be virtual in the derived class, too.
>
No, it absolutely does not. It will be virtual, whether you put the
keyword there or not.
> Many compilers will warn you about this.
>
>
That's why it's a warning, not an error.