Boost logo

Boost :

Subject: Re: [boost] [function] function.hpp lacks include guard
From: Pete Bartlett (pete_at_[hidden])
Date: 2008-10-22 15:06:23


-----Original Message-----
From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
On Behalf Of Andrey Tcherepanov

>Since this variable is not gets redefined very often in the user projects,

>may be it is possible to introduce include guard that depends on this
>variable as well?
>
>
>#ifdef BOOST_FUNCTION_HPP_##BOOST_FUNCTION_MAX_ARGS
>#define BOOST_FUNCTION_HPP_##BOOST_FUNCTION_MAX_ARGS
>...
>#endif

Clever...

Without changes to the code though, in situations where you know the arity,
N, of the boost::function template to be instantiated, you can just include
<boost/function/functionN.hpp> for a similar speed up.

Pete


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