Re: unique objects and stl containers
From: Default User (first.last_at_boeing.com.invalid)
Date: 04/09/04
- Next message: Rob Williscroft: "Re: unique objects and stl containers"
- Previous message: Leor Zolman: "Re: Basic questions"
- Next in thread: Rob Williscroft: "Re: unique objects and stl containers"
- Reply: Rob Williscroft: "Re: unique objects and stl containers"
- Reply: Ivan Vecerina: "Re: unique objects and stl containers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
Brian Rodenborn
- Next message: Rob Williscroft: "Re: unique objects and stl containers"
- Previous message: Leor Zolman: "Re: Basic questions"
- Next in thread: Rob Williscroft: "Re: unique objects and stl containers"
- Reply: Rob Williscroft: "Re: unique objects and stl containers"
- Reply: Ivan Vecerina: "Re: unique objects and stl containers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|