
26 Jan
2005
26 Jan
'05
7:06 a.m.
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