Boost logo

Boost Users :

Subject: Re: [Boost-users] [Move] unique_ptr
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-10-31 12:01:03


on Sun Oct 30 2011, Ion Gaztañaga <igaztanaga-AT-gmail.com> wrote:

> El 30/10/2011 16:40, Szymon Gatner escribió:
>> Hi,
>
>>
>> with now accepted Move library, is implementation of unique_ptr<>
>> planned for boost? I used to use Howard Hinnant's implementation
>> so far but got compilation problems as soon as I added Move library
>> to my toolbox. Also, Hinnant's page says:
>>
>> "The following is a dated C++03 emulation of unique_ptr.
>> You may find a better unique_ptr emulation at boost."
>
> I think it's a missing part. I would like to propose it but I have no
> time at this moment.
>
>> Does he mean the one in Boost.Interprocess?
>
> I think boost::interprocess::unique_ptr can miss some std::unique_ptr
> features (I wrote it many months ago and I haven't checked the
> standard requirements) . Now that we have move-aware containers in
> Boost.Container, boost::unique_ptr would very useful, maybe
> boost::interprocess::unique_ptr is a good starting point. Maybe you
> can try it with boost::container and tell us how it feels.

Maybe http://www.coderage.com/move_ptr/libs/move_ptr/doc/home.html would
be a good place to start.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net