From: rwgk (rwgk_at_[hidden])
Date: 2002-02-13 12:38:27
--- In boost_at_y..., nbecker_at_f... wrote:
> I think it is easy to think of examples where the size is not known
> construction time. For example, an array that is a member of a
> class. Default constructor is used because we don't know the
> size when the class is constructed. Later when a class member
> function is called, the size is known and the array is resized.
Isn't that better described (and implemented) as
1. default construct,
2. construct a new array and assign to the old one (disposing the
default constructed instance)?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk