|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-01-26 02:06:39
JOAQUIN LOPEZ MU?Z wrote:
> This is not strictly related to Boost, but its
> motivation comes from an effort to reduce compilation
> times for a Boost library, so I'll risk posting the
> question.
> Consider the following:
>
> // *************** some_class_template.hpp ***************
>
> #ifdef INCLUDE_DEFINITION
> # define BODY_INCLUDED 1
> #else
> # define BODY_INCLUDED 0
> #endif
>
> #define BODY_DEFINITION(body) BOOST_PP_IF(BODY_INCLUDED,body,;)
If body has unprotected commas, this definition won't work.
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk