1

About uncopyable class (on book:Effective C++)

view story
linux-howto

http://www.unix.com – See the following code: Code: #include<iostream> using namespace std; class Uncopyable { protected:     Uncopyable(){cout<<"hehe\n";}     ~Uncopyable(){} private:     Uncopyable(const Uncopyable &rhs){cout<<"oooops\n";};     Uncopyable& operator=(const Uncopyable &rhs); }; class Dog : private Uncopyable {     string name;     int value; public:     Dog(const string &s, const int &v):name(s), value(v){} public:     //Dog(const Dog &rhs){};  &n (HowTos)