Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Log formal review upcoming
From: Roland Bock (rbock_at_[hidden])
Date: 2010-03-01 13:00:55


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net