Re: unique objects and stl containers
From: Default User (first.last_at_boeing.com.invalid)
Date: Fri, 9 Apr 2004 16:23:24 GMT
Ivan Vecerina wrote:
> So yes, you want to use a container of pointers -- but
> preferably "smart pointers" to help avoid memory leaks.
> My advice would be:
> std::list< boost::shared_ptr<C> > m_lstCs;
> See boost.org for a (thread-safe) implementation of shared_ptr.
> (note that shared_ptr is expected to be included in the next
> revision of the C++ standard).
Was any part of Boost added to the standard in the recent revision?
X-posted to a.c.l.l.c-c++ due to newsfeed problems.