
12 Nov
2004
12 Nov
'04
6:05 p.m.
On Fri, 12 Nov 2004 17:21:10 +0000, Reece Dunn <msclrhd@hotmail.com> 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