|
Boost Users : |
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
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