Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2004-11-12 13:05:29


On Fri, 12 Nov 2004 17:21:10 +0000, Reece Dunn <msclrhd_at_[hidden]> wrote:

> Why not do:
> #define BOOST_LOG(id) /##/
> to remove the logs at compile time?

This doesn't work, at least with gcc 3.3.2. You end up with "/ /"
(e.g. slash space slash) in the proprocessed output.

Additionally, the preprocessor only takes a single pass through the
input, so if this *did* work as intended you'd be passing the comments
through to the compiler, which would presuably emit syntax errors.

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