Boost logo

Boost :

From: Martin Bonner (martin.bonner_at_[hidden])
Date: 2006-06-28 04:46:06

----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
Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ,
ENGLAND Tel: +44 (0)1223 203894

Boost list run by bdawes at, gregod at, cpdaniel at, john at