Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-11-28 10:48:21


From: "AlisdairM" <alisdair.meredith_at_[hidden]>

> "Thorsten Ottosen" <nesotto_at_[hidden]> wrote in
> news:bq7ck4$svu$1_at_[hidden]:
>
>
> > I wonder what is better...auto_array<> or auto_ptr< boost::array<...>
> > > ?
>
> These are two different things.

clearly, but which is better?

> auto_array supports different array sizes at runtime (like vector) but
> auto_ptr< boost::array<...> > is fixed at compile time.

ok, but if auto_array supports transfer of ownership, how can the receiver
tell the size of the array?

> I do like the sneaky way of avoiding the delete/delete[] problem with the
> latter though ;¬ )

can you explain?

br

Thorsten


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