Sometimes it\'s necessary to prohibit a copy constructor in a C++ class so that class becomes \"non-copyable\". Of course, operator= should be prohibited at the
operator=
The first one is better
Even better is C++0x 'delete' keyword:
class Class { // useful stuff, then public: Class(const Class&) = delete; void operator=(const Class&) = delete; };