Boost logo

Boost :

Subject: Re: [boost] [parameter] Redefining BOOST_PARAMETER_MAX_ARITY
From: David Abrahams (dave_at_[hidden])
Date: 2008-10-14 14:25:36


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.

> 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.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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