Re: unique objects and stl containers

From: Default User (first.last_at_boeing.com.invalid)
Date: 04/09/04


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



Relevant Pages

  • Re: unique objects and stl containers
    ... Ivan Vecerina wrote: ... > My advice would be: ... Was any part of Boost added to the standard in the recent revision? ... Brian Rodenborn ...
    (comp.lang.cpp)
  • Re: piccolo snare?
    ... will boost the volume significantly. ... I once got that advice here from Stuart McConaghy, and it totally changed the way I tune my drums. ... TomB - DrumScum ...
    (rec.music.makers.percussion)