
22 Oct
2008
22 Oct
'08
7:06 p.m.
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] 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