Ticket #7166: boost_phoenix_7166.patch

File boost_phoenix_7166.patch, 1.2 KB (added by Mathieu Champlon <m.champlon@…>, 9 years ago)
  • boost/phoenix/core/limits.hpp

     
    1818#if defined(BOOST_PHOENIX_LIMIT)
    19 #define BOOST_PROTO_MAX_ARITY BOOST_PHOENIX_LIMIT
     19# if !defined( BOOST_PROTO_MAX_ARITY )
     20#  define BOOST_PROTO_MAX_ARITY BOOST_PHOENIX_LIMIT
     21# elif (BOOST_PROTO_MAX_ARITY < BOOST_PHOENIX_LIMIT)
     22#  error "BOOST_PROTO_MAX_ARITY is set too low"
     23# endif
    2024#include <boost/proto/proto_fwd.hpp>
  • libs/phoenix/test/Jamfile

     
    129129    [ run regression/bug7165.cpp ]
     130    [ compile-fail regression/bug7166.cpp ]
    130131    ;
  • libs/phoenix/test/regression/bug7166.cpp

    new file mode 100644
     
     1#define BOOST_PROTO_MAX_ARITY 10
     2#define BOOST_PHOENIX_LIMIT 20
     3#include <boost/phoenix.hpp>
     4 
     5int main()
     6{
     7}