
David Abrahams wrote:
on Mon Oct 13 2008, Jamie Allsop <ja11sop-AT-yahoo.co.uk> wrote:
Should I expect to be able to redefine BOOST_PARAMETER_MAX_ARITY and be able to compile? <http://www.boost.org/doc/libs/1_36_0/libs/parameter/doc/html/reference.html#boost-parameter-max-arity>
For example using,
#define BOOST_PARAMETER_MAX_ARITY 6 #include <boost/parameter/name.hpp> #include <boost/parameter/preprocessor.hpp>
// ... code here ...
does not compile.
What is the error? It _should_ work.
yes it does (see my previous post) apologies for the noise
Also I wonder if there is some theoretical or practical upper limit?
Surely there is a practical upper limit, but it depends on your compiler and I don't know what it is.
gcc 4.2 and as it happens I was using 15 parameters (yes a lot, time pressures et al. caused both my hasty post and lack of simplification). One thing I did not mention was that this is a very cool library. Jamie