Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2005-04-26 05:09:52


>> if ( is_log_enabled(app) ) app_log() << "testing" << i ...;
>
>
>
> don't you think you'd better make it if(!is_log_enabled(app));else
> app_log() << "testing" << i ...; just in case there is an if / else in
> the neighborhood
>

Actually, that's exactly how it's done :)
I was just explaining the concept.

Best,
John

-- 
John Torjo,    Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/ -v1.6.3 (Resource Splitter)
-- http://www.torjo.com/cb/ - Click, Build, Run!

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk