Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 1999-11-24 21:43:11


From: Valentin Bonnard <Bonnard.V_at_[hidden]>
> Greg Colvin wrote:
>
> > From: Valentin Bonnard <Bonnard.V_at_[hidden]>
> > > Greg Colvin wrote:
> > >
> > > > A copy of this argument is
> > > > used for any memory allocation performed, by these constructors and by
> > > > all member functions, during the lifetime of each container object.
> > >
> > > Oh ! I failed to notice that. Still, containers can use malloc for
> > > their private data (but that's morally bad).
> >
> > By what loophole could they use malloc?
>
> Why wouldn't they call malloc ?

Because the standard says they have to use the allocator
for "any memory allocation performed, by these constructors
and by all member functions" and I don't see where that
leaves room to allocate memory any other way.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk