Boost logo

Boost :

From: Dave Harris (brangdon_at_[hidden])
Date: 2005-10-27 13:19:25

In-Reply-To: <[hidden]>
vawjr_at_[hidden] (Victor A. Wagner Jr.) wrote (abridged):
> OK, fix the core language so that I don't have to write the whole
> batch of forwarding functions

You can use private inheritance and using-declarations, if that helps.

> AND I get the new ones automatically when std::vector gets updated!!

That's the controversial part. If you inherit from std::vector it is
relatively easy for changes to the std library to break your code. The
worst case is when the base class adds a virtual function with the same
name as one of your private member functions.

You might consider using non-member functions which take a std::vector
argument instead. It sounds like you are not adding any data or virtual
functions, so your new stuff may not actually need to be member functions?

-- Dave Harris, Nottingham, UK.

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