21 Apr
2009
21 Apr
'09
2:05 p.m.
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?