"Wolfgang Jeltsch" <je*****@tu-cottbus.de> wrote in message news:3F**************@tu-cottbus.de...
Hello,
what is the best way to prevent the user of a class from making copies of
objects of this class? Making the copy constructor private is a solution but I'm
looking for a better one.
We make the copy constructor (and also frequently the assignment op) private
and we don't implement it. Not only does this give compile errors when you
try to make external copies, but (at least on our systems) link errors if you
try to make copies inside the class.