Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2005-04-25 12:34:06


On 4/25/05, Victor A. Wagner Jr. <vawjr_at_[hidden]> wrote:

> don't you think you'd better make it if(!is_log_enabled(app));else
> app_log() << "testing" << i ...; just in case there is an if / else in the
> neighborhood

It is already implemented as you suggest. FWIW, I always thought the
"right" way to do multi-line macros was to use do { /* stuff */ }
while (0). I picked this up from the comp.lang.c FAQ if memory serves
(http://www.eskimo.com/~scs/C-faq/q10.4.html)

-- 
Caleb Epstein
caleb dot epstein at gmail dot com

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