
4 Dec
2008
4 Dec
'08
4:57 p.m.
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.ht... -Thorsten