Boost logo

Boost :

From: Rainer Deyke (root_at_[hidden])
Date: 2001-05-18 21:33:20

----- Original Message -----
From: "Rainer Deyke" <root_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, May 18, 2001 8:03 PM
Subject: Re: [boost] Re: downcasting smart pointers

> class A {};
> class B : public A {};
> A a;
> B *bp = dynamic_cast<B *>(&a);

I just noticed that a mistake in this example code I posted earlier today.
'A' needs a virtual function for 'dynamic_cast' to work. Sorry about that.

Rainer Deyke (root_at_[hidden])
Shareware computer games           - 
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

Boost list run by bdawes at, gregod at, cpdaniel at, john at