summaryrefslogtreecommitdiff
path: root/libs/mpl
diff options
context:
space:
mode:
Diffstat (limited to 'libs/mpl')
-rw-r--r--libs/mpl/doc/index.html2
-rw-r--r--libs/mpl/doc/tutorial/incomplete-support-for.html2
-rw-r--r--libs/mpl/meta/libraries.json14
-rw-r--r--libs/mpl/test/Jamfile.v21
-rw-r--r--libs/mpl/test/aux_/increased_arity.cpp50
5 files changed, 67 insertions, 2 deletions
diff --git a/libs/mpl/doc/index.html b/libs/mpl/doc/index.html
index 3b9fc7e92..fb94a4549 100644
--- a/libs/mpl/doc/index.html
+++ b/libs/mpl/doc/index.html
@@ -35,7 +35,7 @@ metafunctions. It provides a conceptual foundation and an extensive
set of powerful and coherent tools that make doing explict metaprogramming
in C++ as easy and enjoyable as possible within the current language.</p>
<p>There are several places to start when getting familiar with the library,
-depending on what your know about metaprogramming in general and
+depending on what you know about metaprogramming in general and
C++ template metaprogramming in particular. Starting with
Boost version 1.32, the MPL comes with both an <a class="reference" href="./tutorial/tutorial-metafunctions.html">in-depth tutorial</a> on its
fundamental concepts and an annotated <a class="reference" href="./tutorial/reference-manual.html">reference manual</a> covering all concepts
diff --git a/libs/mpl/doc/tutorial/incomplete-support-for.html b/libs/mpl/doc/tutorial/incomplete-support-for.html
index 991283d24..4e30f130d 100644
--- a/libs/mpl/doc/tutorial/incomplete-support-for.html
+++ b/libs/mpl/doc/tutorial/incomplete-support-for.html
@@ -113,7 +113,7 @@ arguments), which comes down to the follwing two criteria:</p>
placeholders do contain these).</li>
</ol>
<p>If these two hold, you can safely put <tt class="literal"><span class="pre">BOOST_MPL_AUX_LAMBDA_SUPPORT</span></tt> inside
-your metafunction and forget about the issue. If not, your are out of luck and
+your metafunction and forget about the issue. If not, you are out of luck and
probably have to write a metafunction class instead.</p>
<p>The good news are that most of the MPL's own metafunctions and <a class="reference" href="../../../type_traits/index.html" target="_top">Boost.Type Traits</a>
templates are &quot;placeholder-safe&quot; and have the workaround applied to them, so
diff --git a/libs/mpl/meta/libraries.json b/libs/mpl/meta/libraries.json
new file mode 100644
index 000000000..6f7bd4c7c
--- /dev/null
+++ b/libs/mpl/meta/libraries.json
@@ -0,0 +1,14 @@
+{
+ "key": "mpl",
+ "name": "MPL",
+ "authors": [
+ "Aleksey Gurtovoy"
+ ],
+ "description": "The Boost.MPL library is a general-purpose, high-level C++ template metaprogramming framework of compile-time algorithms, sequences and metafunctions. It provides a conceptual foundation and an extensive set of powerful and coherent tools that make doing explict metaprogramming in C++ as easy and enjoyable as possible within the current language.",
+ "category": [
+ "Metaprogramming"
+ ],
+ "maintainers": [
+ "Aleksey Gurtovoy <agurtovoy -at- meta-comm.com>"
+ ]
+}
diff --git a/libs/mpl/test/Jamfile.v2 b/libs/mpl/test/Jamfile.v2
index 0031a5234..6a88a6a06 100644
--- a/libs/mpl/test/Jamfile.v2
+++ b/libs/mpl/test/Jamfile.v2
@@ -1,4 +1,5 @@
+compile aux_/increased_arity.cpp ;
compile aux_/largest_int.cpp ;
compile aux_/msvc_is_class.cpp ;
compile aux_/template_arity.cpp ;
diff --git a/libs/mpl/test/aux_/increased_arity.cpp b/libs/mpl/test/aux_/increased_arity.cpp
new file mode 100644
index 000000000..47a433d63
--- /dev/null
+++ b/libs/mpl/test/aux_/increased_arity.cpp
@@ -0,0 +1,50 @@
+
+// Copyright Bruno Dutra 2015
+//
+// Distributed under 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)
+//
+// See http://www.boost.org/libs/mpl for documentation.
+
+// $Id$
+// $Date$
+// $Revision$
+
+#define BOOST_MPL_LIMIT_METAFUNCTION_ARITY 15
+#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
+
+#include <boost/mpl/logical.hpp>
+#include <boost/mpl/placeholders.hpp>
+#include <boost/mpl/apply.hpp>
+
+#include <boost/mpl/aux_/test.hpp>
+
+#include <boost/preprocessor/inc.hpp>
+#include <boost/preprocessor/repeat_from_to.hpp>
+#include <boost/preprocessor/enum_params.hpp>
+#include <boost/preprocessor/facilities/intercept.hpp>
+
+#define TEST_N_ARY(unused1, N, unused2) \
+ static_assert_< \
+ apply< \
+ and_<BOOST_PP_ENUM_PARAMS(N, _ BOOST_PP_INTERCEPT)>, \
+ BOOST_PP_ENUM_PARAMS(N, true_ BOOST_PP_INTERCEPT) \
+ > \
+ >(); \
+/**/
+
+template<typename assertion>
+void static_assert_(){
+ MPL_ASSERT((typename assertion::type));
+}
+
+MPL_TEST_CASE()
+{
+ BOOST_PP_REPEAT_FROM_TO(
+ 2,
+ BOOST_PP_INC(BOOST_MPL_LIMIT_METAFUNCTION_ARITY),
+ TEST_N_ARY,
+ _
+ )
+}