Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with shared_ptr
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-01-14 08:05:25


Germán Diago:
...
> std::vector<boost::shared_ptr<DerivedClass> >
> result(get_base_objects.size());

You're creating a vector full of NULLs here. :-)

--
Peter Dimov
http://www.pdplayer.com 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net