Boost logo

Boost :

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


> 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!

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