$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?