|
Boost-Commit : |
From: eric_at_[hidden]
Date: 2008-06-02 12:50:45
Author: eric_niebler
Date: 2008-06-02 12:50:45 EDT (Mon, 02 Jun 2008)
New Revision: 46049
URL: http://svn.boost.org/trac/boost/changeset/46049
Log:
fix BOOST_PROTO_MAX_FUNCTION_CALL_ARITY definition
Text files modified:
branches/proto/v4/boost/phoenix/core/limits.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: branches/proto/v4/boost/phoenix/core/limits.hpp
==============================================================================
--- branches/proto/v4/boost/phoenix/core/limits.hpp (original)
+++ branches/proto/v4/boost/phoenix/core/limits.hpp 2008-06-02 12:50:45 EDT (Mon, 02 Jun 2008)
@@ -7,6 +7,8 @@
#ifndef PHOENIX_CORE_LIMITS_HPP
#define PHOENIX_CORE_LIMITS_HPP
+#include <boost/preprocessor/selection/min.hpp>
+
#if !defined(PHOENIX_LIMIT)
# define PHOENIX_LIMIT 10
#endif
@@ -32,7 +34,7 @@
#endif
#if !defined(BOOST_PROTO_MAX_FUNCTION_CALL_ARITY)
-# define BOOST_PROTO_MAX_FUNCTION_CALL_ARITY 6
+# define BOOST_PROTO_MAX_FUNCTION_CALL_ARITY BOOST_PP_MIN(PHOENIX_LIMIT, 6)
#endif
#if defined(BOOST_PROTO_MAX_ARITY)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk