mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-29 11:47:14 +02:00
fixed -1st- example
[SVN r16156]
This commit is contained in:
@ -76,6 +76,14 @@ yes_type is_function_tester(R (*)(A0, A1, A2));
|
||||
Using the primitives of the preprocessor library, the <code>is_function_tester()</code>'s could be implemented like this:
|
||||
</div>
|
||||
<div class="code"><pre>
|
||||
#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))); \
|
||||
|
Reference in New Issue
Block a user