Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2003-03-04 20:36:38

"Brian Gray" <briangray_at_[hidden]> wrote in message
> 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)


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