
25 Apr
2005
25 Apr
'05
4:47 p.m.
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 ...; 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!