Boost logo

Boost :

Subject: Re: [boost] [locale] localization_backend_manager interface issue
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2011-04-15 14:58:23


On Fri, Apr 15, 2011 at 11:52 AM, Artyom <artyomtnk_at_[hidden]> wrote:

>
>
> >
> > std::auto_ptr is deprecated in C++0x.
> > Just for note.
> >
> > --
> > Ryou Ezoe
>
> I'm aware of it even thou I'm really not happy with it.
>
> In any case auto_ptr is the only pointer with move ownership
> semantics in C++03 and Boost, so meanwhile it is the only valid
> solution that has clear ownership semantics.
>

One alternative to using std::auto_ptr is the unique_ptr implementation
found in sandbox/unique_ptr (by Hinnant & Gatzanaga)...you can copy the
source to a detail namespace in your library until we have a portable
boost::unique_ptr...

Just a suggestion,

- Jeff


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