Boost logo

Boost :

Subject: Re: [boost] unique_ptr for C++0x exprimental compilers?
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2009-06-04 22:58:14


Hi Christian,

On Thu, Jun 4, 2009 at 10:13 PM, Christian Henning <chhenning_at_[hidden]> wrote:
> Hi Dean, quick question. In line 31 of the header, why do you have
> this unique pointer forward declaration here? I mean you're defining
> the class just below. Just wondering.
>
> Thanks for this implementation.
>

Oh, I was originally thinking of doing two different implementations
-- one for C++0x and another for C++03. The forward declaration was
supposed to be just before the point where I'd have an #if that chose
which implementation to choose.

I was then having some problems with the C++03 implementation since I
couldn't think of a way to make unique_ptr<> non-copy-constructible
but move-constructible (so that it could be returned from functions).
So I left the forward declaration there and forgot about it in the
end. :)

-- 
Dean Michael Berris | Software Engineer, Friendster, Inc.
blog.cplusplus-soup.com | twitter.com/mikhailberis |
linkedin.com/in/mikhailberis | profiles.friendster.com/mikhailberis |
deanberris.com

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