The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   OS X Developer (http://hintsforums.macworld.com/forumdisplay.php?f=27)
-   -   Determining the CPU count (http://hintsforums.macworld.com/showthread.php?t=97619)

hayne 01-12-2009 07:34 PM

Quote:

Originally Posted by jwoolsto (Post 512994)
My compiler is throwing a bunch of warnings about my objects having non-virtual destructors. I havnt had the chance to figure out what that even means yet (I would think it would want the destructors to be non virtual?)

See:
http://www.parashift.com/c++-faq-lit....html#faq-20.7

Quote:

Ive been ignoring the complier warning messages
That's almost always a big mistake.
The compiler is very polite - it says things like:
"Excuse me, Mr Programmer, but I think maybe this thing you are doing on line 73 isn't quite right."
when your (C++ knowledgeable) boss would be saying something like:
"You ****ing idiot, what the **** are you doing on line 73 ?!?!"

You should at least configure the compiler to warn only about the most serious things instead of ignoring all warnings. But usually it is best to ask for max warnings and benefit from the superior wisdom of the compiler.


All times are GMT -5. The time now is 06:00 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.