Boost logo

Boost :

From: Maurizio Vitale (mav_at_[hidden])
Date: 2007-05-02 18:07:03


Maurizio Vitale <mav_at_cuma.polymath-solutions.lan> writes:

> The following piece of code compiles fine:
>
> #define BOOST_PROTO_MAX_ARITY 8
> #include <boost/xpressive/proto/proto.hpp>
>
> while the following gives errors
>
> #define BOOST_PROTO_MAX_ARITY 9
> #include <boost/xpressive/proto/proto.hpp>
>
> and so on for any value of BOOST_PROTO_MAX_ARITY larger than 8.

Another data point: even though the above code compile with 8 and 7, in
my real code I get a match failure on number<_,_,_,_,_,_,_,_> [8] or
number<_,_,_,_,_,_,_> [7]. As far as I can tell, the only difference
between the working code and the non-working code is the additional
template arguments to number<>, which are not used.

So it is possible that matches fail for patterns with more than 6
elements, but I still have to reproduce the problem on a small
testcase.

Best regards,

     Maurizio


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