On Thu, Sep 18, 2008 at 5:38 PM, David Fuentes <[EMAIL PROTECTED]> wrote: > > > Is there any reason why the AutoPtr class does not have a copy > constructor? I would like to create an stl vector of AutoPtr > > vector< AutoPtr<NumericVector<Number> > > local_solution_history; > > to store the entire solution history.
Unfortunately you can never ever have a container of AutoPtrs. You might try a boost::shared_ptr instead. The reasoning is that items in an STL container must by copyable, and AutoPtr is not, since it's not clear which copy would then manage the memory. -- John ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
