diff --git a/doc/topics/motivation.html b/doc/topics/motivation.html index 281041c..c9a14ae 100644 --- a/doc/topics/motivation.html +++ b/doc/topics/motivation.html @@ -76,6 +76,14 @@ yes_type is_function_tester(R (*)(A0, A1, A2)); Using the primitives of the preprocessor library, the is_function_tester()'s could be implemented like this:
+#include <boost/preprocessor/arithmetic/inc.hpp>
+#include <boost/preprocessor/punctuation/comma_if.hpp>
+#include <boost/preprocessor/repetition.hpp>
+
+#ifndef MAX_IS_FUNCTION_TESTER_PARAMS
+#define MAX_IS_FUNCTION_TESTER_PARAMS 15
+#endif
+
 #define IS_FUNCTION_TESTER(Z, N, _) \
    template<class R BOOST_PP_COMMA_IF(N) BOOST_PP_ENUM_PARAMS(N, class A)> \
    yes_type is_function_tester(R (*)(BOOST_PP_ENUM_PARAMS(N, A))); \