Boost logo

Boost :

Subject: Re: [boost] Is there interest in an alternative to the Singleton anti-pattern?
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2011-06-27 13:53:58


2011/6/27 Jeffrey Lee Hellrung, Jr. <jeffrey.hellrung_at_[hidden]>:
> Forgive me as I don't know the entire context of this, but would
> boost::scoped_ptr be sufficient here?  One would never transfer the
> ownership of the object referenced by std::auto_ptr, would they?

Yes, you are right. boost::scoped_ptr will suit better. Thank you.

Best regards,
Antony Polukhin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk