|
![](/i/fill.gif) |
On 5/17/2013 11:16 AM, Warp wrote:
> Orchid Win7 v1 <voi### [at] dev null> wrote:
>> Second, it seems this "feature" only exists in C++11. I don't know what
>> GCC is defaulting to, but apparently you have to add a switch to tell it
>> to accept C++11. And when I do that, my code compiles perfectly, but the
>> rest of the codebase breaks spectacularly.
>
>> 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.
Actually, this reminds me that I should update some of my own code from
boost:shared_ptr to std::shared_ptr.
Post a reply to this message
|
![](/i/fill.gif) |