
Hi Christian, On Thu, Jun 4, 2009 at 10:13 PM, Christian Henning <chhenning@gmail.com> 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