On May 27, 10:53 am, "wo3...@gmail.com" <wo3...@gmail.comwrote:
Much faster and readable with intention is
struct unclonable : boost::noncopyable
{
};
If you're familiar with Boost. I originally used something like
this long before Boost existed. I dropped it because most
maintenence programmers weren't as familiar with it as they were
with the standard idiom of making the copy constructor and the
assignment operator private. (I've since started using it
again, because I'm hoping that Boost will make it widely known.)
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34