[Boost-bugs] [Boost C++ Libraries] #7165: cannot change BOOST_PHOENIX_LIMIT

Subject: [Boost-bugs] [Boost C++ Libraries] #7165: cannot change BOOST_PHOENIX_LIMIT
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-24 09:36:34


#7165: cannot change BOOST_PHOENIX_LIMIT
--------------------------------+-------------------------------------------
 Reporter: m.champlon@… | Owner: theller
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
  Version: Boost 1.50.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 Hi !

 The following code :
  #define BOOST_PHOENIX_LIMIT 20
  #include <boost/phoenix.hpp>
 fails to compile with boost 1.50 and msvc 2010 with an error trace
 starting with :
  1>C:\dev\include\boost/phoenix/core/preprocessed/actor_30.hpp(10): error
 C2977: 'boost::proto::and_' : too many template arguments
  1> C:\dev\include\boost/proto/matches.hpp(784) : see declaration
 of 'boost::proto::and_'

 The following compiles :
  #define BOOST_PHOENIX_LIMIT 20
  #define BOOST_PROTO_MAX_LOGICAL_ARITY 20
  #include <boost/phoenix.hpp>

 In http://boost.2283326.n4.nabble.com/phoenix-not-playing-nice-with-other-
 libs-td3489758.html Eric Niebler seems to suggest that proto::and_ should
 be split and nested to avoid having to change
 BOOST_PROTO_MAX_LOGICAL_ARITY, wouldn't that solve the issue ?

 Thanks,
 MAT.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7165>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC