Boost logo

Boost Users :

Subject: Re: [Boost-users] Scoped_array with constructors?
From: Andrew Holden (aholden_at_[hidden])
Date: 2009-04-21 10:05:38


Space Ship Traveller wrote:
>
> Hi,
>
> I want to use scoped_ptr with std::vector or scoped_array, but the
> problem is that the type I want to allocate has a non-trivial constructor.
>
> What is the standard way to make this work? My current best guess is to
> use std::vector with boost::scoped_ptr in the following way:

Have you looked into Thorsten Ottosen's pointer container library?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net