
26 Apr
2005
26 Apr
'05
10:11 a.m.
Is it the case however that we'll have to pay the cost of evaluating whatever arguments are supplied (for example if some of them are function calls etc.)?
As in:
BOOST_LOG(app) << "testing " << fctn() << '-' << j << '-' << k;
Will fctn() be called if !is_log_enabled(app)?
Nope, it will not be called. 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!