Boost logo

Boost :

Subject: Re: [boost] [function] function.hpp lacks include guard
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-22 17:33:35


AMDG

Pete Bartlett wrote:
> #if (BOOST_FUNCTION_MAX_ARGS >
> BOOST_FUNCTION_MAX_ARGS_CURRENTLY_AVAILABLE_PLUS_1)
>
> <snip>
>
> #define BOOST_FUNCTION_MAX_ARGS_CURRENTLY_AVAILABLE_PLUS_1
> (1+BOOST_FUNCTION_MAX_ARGS) //ready for next include
>

Unfortunately, macros used in another macro definition are not substituted
immediately, so this is equivalent to

#if (BOOST_FUNCTION_MAX_ARGS > (1+BOOST_FUNCTION_MAX_ARGS))

In Christ,
Steven Watanabe


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