|
Boost Users : |
Subject: Re: [Boost-users] Usage of Boost.Optional
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2010-10-25 06:19:20
On Mon, Oct 25, 2010 at 6:11 PM, Alexander Churanov
<alexanderchuranov_at_[hidden]> wrote:
> 2010/10/25 Dean Michael Berris <mikhailberis_at_[hidden]>:
>>
>> I think what the OP was looking for is a move constructor for
>> Boost.Optional which I don't think it supports (yet).
>
> Isn't std::auto_ptr a suitable alternative for this case?
>
I'd think so, but the OP wants to avoid the heap allocation.
-- Dean Michael Berris deanberris.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