Re: [boost] Supressing warnings

28 Jun
2006
28 Jun
'06
8:46 a.m.
----Original Message---- From: Reece Dunn
void foo( int bar ){} // unreferenced parameter void foo( int bar ){ bar; } // no warning!
Or even better: void foo( int /*bar*/ ) {} // no warning.
bool foo(){ BOOL bar = TRUE; return bar; } // performance warning bool foo(){ BOOL bar = TRUE; return bar != FALSE; } // no warning
I think that transform is a BAD idea. If people start thinking it is OK to compare boolean-like values against literals, they soon start comparing against TRUE as well as FALSE. -- Martin Bonner Martin.Bonner@Pitechnology.com Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ, ENGLAND Tel: +44 (0)1223 203894
6922
Age (days ago)
6922
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Bonner