Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72360 - sandbox/assign_v2/boost/assign/v2/support/config
From: erwann.rogard_at_[hidden]
Date: 2011-06-02 20:46:14


Author: e_r
Date: 2011-06-02 20:46:14 EDT (Thu, 02 Jun 2011)
New Revision: 72360
URL: http://svn.boost.org/trac/boost/changeset/72360

Log:
upd assign_v2
Added:
   sandbox/assign_v2/boost/assign/v2/support/config/limit_functor_arity.hpp (contents, props changed)
   sandbox/assign_v2/boost/assign/v2/support/config/limit_functor_const_non_const_arity.hpp (contents, props changed)

Added: sandbox/assign_v2/boost/assign/v2/support/config/limit_functor_arity.hpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/boost/assign/v2/support/config/limit_functor_arity.hpp 2011-06-02 20:46:14 EDT (Thu, 02 Jun 2011)
@@ -0,0 +1,46 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2011 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY_ER_2011_HPP
+#define BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY_ER_2011_HPP
+#include <boost/assign/v2/support/pp/parameter_list.hpp>
+#include <boost/mpl/limits/arity.hpp>
+#include <boost/preprocessor/comparison/greater.hpp>
+#include <boost/preprocessor/selection/min.hpp>
+
+#ifndef BOOST_ASSIGN_V2_PARAMETER_LIST_SIZE
+#error
+#endif
+
+#ifndef BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY
+//[limit_functor_arity
+/* n = BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY
+ Overload | Arity
+ -------------------------------------
+ functor() | 0
+ functor(x[0]) | 1
+ functor(x[0], x[1]) | 2
+ ...
+ functor(x[0], ..., x[n-1]) | n
+*/
+
+#define BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY 4
+
+//]
+
+#endif // BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY
+
+//[limit_arity_requirement
+// Some result_of:: meta-functions expect an mpl-vector as template parameter
+#if BOOST_PP_GREATER( BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY, BOOST_MPL_LIMIT_METAFUNCTION_ARITY )
+#error
+#endif // BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY
+//]
+
+#endif // BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY_ER_2011_HPP

Added: sandbox/assign_v2/boost/assign/v2/support/config/limit_functor_const_non_const_arity.hpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/boost/assign/v2/support/config/limit_functor_const_non_const_arity.hpp 2011-06-02 20:46:14 EDT (Thu, 02 Jun 2011)
@@ -0,0 +1,29 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2011 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_V2_LIMIT_FUNCTOR_CONST_NON_CONST_ARITY_ER_2011_HPP
+#define BOOST_ASSIGN_V2_LIMIT_FUNCTOR_CONST_NON_CONST_ARITY_ER_2011_HPP
+#include <boost/assign/v2/support/config/limit_functor_arity.hpp>
+#include <boost/preprocessor/comparison/greater.hpp>
+#ifndef BOOST_ASSIGN_V2_LIMIT_FUNCTOR_CONST_NON_CONST_ARITY
+//[limit_functor_const_non_const_arity
+/*
+ Maximum arity for which functors are overloaded for any combination of const
+ and non-const lvalues under C++03. Be warned that the number of function
+ overloads increases geometrically with this number.
+*/
+#define BOOST_ASSIGN_V2_LIMIT_FUNCTOR_CONST_NON_CONST_ARITY 2
+//]
+#endif
+//[limit_lvalue_const_arity_requirement
+#if BOOST_PP_GREATER( BOOST_ASSIGN_V2_LIMIT_FUNCTOR_CONST_NON_CONST_ARITY, BOOST_ASSIGN_V2_LIMIT_FUNCTOR_ARITY )
+#error
+#endif
+//]
+#endif // BOOST_ASSIGN_V2_LIMIT_FUNCTOR_CONST_NON_CONST_ARITY_ER_2011_HPP


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