On 03.07.2012 02:11, Kinkie wrote:
Hi,
I stumbled across these two resources. Maybe they are interesting
to someone?
Google C++ style guide:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
Disallow-copy-and-assign
http://nids9.blogspot.it/2009/09/disallowcopyandassign.html
(a helper macro to make copy constructor and assignment operator
appear more declaratory)
Nice. Thank you.
Reading the google one I'm reminded of a few things...
... is anyone able to come up with a script or tester to detect
classes which violate our Big-3 constructor/destructor/assignment
operator guideline? I know there are portions of the code which are
broken today and it is easily overlooked, this would be a nice one to
enforce automatically.
Amos