From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <6.0.2.0.0.20060411100415.01cb6490@pop.monitorbm.co.nz> Date: Tue, 11 Apr 2006 10:07:53 +1200 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> From: Andrew Simmons Subject: Re: [9fans] Good enough approximation for ape/pcc In-Reply-To: References: <229aaef51090aa24504f7f55d106b8c2@quanstro.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Topicbox-Message-UUID: 34428c50-ead1-11e9-9d60-3106f5b1d025 >Or they might just like writing stuff for the compiler, personal >entertainment. I was recently told about the following compiler option. I honestly thought it was an April Fool's joke: -Weffc++ This option warns about C++ code which breaks some of the programming guidelines given in the books "Effective C++" and "More Effective C++" by Scott Meyers. For example, a warning will be given if a class which uses dynamically allocated memory does not define a copy constructor and an assignment operator. Note that the standard library header files do not follow these guidelines, so you may wish to use this option as an occasional test for possible problems in your own code rather than compiling with it all the time.