POV-Ray : Newsgroups : povray.off-topic : Adventures with C++ : Re: An actual C++ question Server Time
29 Jul 2024 02:29:01 EDT (-0400)
  Re: An actual C++ question  
From: Orchid Win7 v1
Date: 21 May 2013 13:25:32
Message: <519bae0c$1@news.povray.org>
>>> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.