|
![](/i/fill.gif) |
>>> So, in summary, I had to revert everything back to how it was. *sigh*
>>
>> You could use std::auto_ptr instead of std::shared_ptr, but then you'd
>> better disable copying for your class.
>
> Or use boost::shared_ptr of course.
OK, so I went with boost::shared_ptr in the end.
However, I can't seem to figure out what to write in the constructor.
I've got a field that looks like
boost::shared_ptr<std::vector<Foo>> _foo;
What do I need to do to initialise this correctly?
Post a reply to this message
|
![](/i/fill.gif) |