1 Mar
2010
1 Mar
'10
6 p.m.
Eric J. Holtman wrote:
Roland Bock wrote:
If the respective parts were header only, I wonder if the same could not be done without the MACROS (but with compiler optimization).
No. If you have a line like
log (level) << Some_Expression ();
there's no compiler optimization (well, probably no optimization) that can prevent Some_Expression() from being evaluated.
But the macro expands to something along the lines of
if (log.is_filtered (level)) {} else log.streamer ()
OK, got it. Thanks for the explanation :-) Regards, Roland