Boost logo

Boost :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2005-04-25 12:14:45


At Monday 2005-04-25 09:47, you wrote:

>>Hi. If I understand right the code, even if log is disabled, I do pay for
>>constructing
>>log messages. Am I right? If so why do you force this?
>
>No, you donot pay.
>
>BOOST_LOG(app) << "testing " << i << '-' << j << '-' << k;
>
>Is the equivalent of:
>
>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

>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!
>
>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


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