Ticket #7166: boost_phoenix_7166.patch
File boost_phoenix_7166.patch, 1.2 KB (added by , 9 years ago) |
---|
-
boost/phoenix/core/limits.hpp
18 18 #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 20 24 #include <boost/proto/proto_fwd.hpp> -
libs/phoenix/test/Jamfile
129 129 [ run regression/bug7165.cpp ] 130 [ compile-fail regression/bug7166.cpp ] 130 131 ; -
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 5 int main() 6 { 7 }