$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] noncopyable
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-12-04 11:57:34
Hicham Mouline skrev:
> Like this?
> 
> class C : public boost::noncopyable {
> public:
>   ... clone() const
>   {
>    ...
>   }
> private:
>    C( const C& rhs )
>    {
>      ....
>    }
> };
> 
> ... instance c1 of C exists here ....
> 
> What possible return types of clone() const are possible?
> .A native reference
> .An auto_ptr
> 
> 
> To be honest, I'm not sure myself of how it would be used...
> 
Maybe this will be of interest:
http://www.boost.org/doc/libs/1_37_0/libs/ptr_container/doc/ptr_container.html
-Thorsten