$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2003-03-04 20:36:38
"Brian Gray" <briangray_at_[hidden]> wrote in message
news:134BA7DC-4E86-11D7-81C4-00039375675E_at_mac.com...
> I can see how vector<Derived*> might benefit from conversion to
> vector<Base*>, but we're talking about contiguous memory here. Very
> subject to raw object size, so there's no way to cast between the two
> and preserve object hierarchies if they're not pointers.
The conversion vector<Derived*> to vector<Base*> is unsound. What, are we
going the way of Java containers? :o)
Andrei