|
18 | 18 | #ifndef MSGPACK_CPP03_DEFINE_MAP_HPP |
19 | 19 | #define MSGPACK_CPP03_DEFINE_MAP_HPP |
20 | 20 |
|
21 | | -#if defined(MSGPACK_USE_BOOST) |
22 | | - |
23 | 21 | // BOOST_PP_VARIADICS is defined in boost/preprocessor/config/config.hpp |
24 | 22 | // http://www.boost.org/libs/preprocessor/doc/ref/variadics.html |
25 | 23 | // However, supporting compiler detection is not complete. msgpack-c requires |
26 | 24 | // variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly. |
27 | | -#if !defined(BOOST_PP_VARIADICS) |
28 | | -#define BOOST_PP_VARIADICS |
| 25 | +#if !defined(MSGPACK_PP_VARIADICS) |
| 26 | +#define MSGPACK_PP_VARIADICS |
29 | 27 | #endif |
30 | 28 |
|
31 | | -#include <boost/preprocessor.hpp> |
| 29 | +#include <msgpack/preprocessor.hpp> |
32 | 30 |
|
33 | 31 | #include "msgpack/versioning.hpp" |
34 | 32 | #include "msgpack/adaptor/msgpack_tuple.hpp" |
35 | 33 | #include "msgpack/adaptor/adaptor_base.hpp" |
36 | 34 | #include "msgpack/object_fwd.hpp" |
37 | 35 |
|
38 | 36 | #define MSGPACK_DEFINE_MAP_EACH_PROC(r, data, elem) \ |
39 | | - BOOST_PP_IF( \ |
40 | | - BOOST_PP_IS_BEGIN_PARENS(elem), \ |
| 37 | + MSGPACK_PP_IF( \ |
| 38 | + MSGPACK_PP_IS_BEGIN_PARENS(elem), \ |
41 | 39 | elem, \ |
42 | | - (BOOST_PP_STRINGIZE(elem))(elem) \ |
| 40 | + (MSGPACK_PP_STRINGIZE(elem))(elem) \ |
43 | 41 | ) |
44 | 42 |
|
45 | 43 | #define MSGPACK_DEFINE_MAP_IMPL(...) \ |
46 | | - BOOST_PP_SEQ_TO_TUPLE( \ |
47 | | - BOOST_PP_SEQ_FOR_EACH( \ |
| 44 | + MSGPACK_PP_SEQ_TO_TUPLE( \ |
| 45 | + MSGPACK_PP_SEQ_FOR_EACH( \ |
48 | 46 | MSGPACK_DEFINE_MAP_EACH_PROC, \ |
49 | 47 | 0, \ |
50 | | - BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__) \ |
| 48 | + MSGPACK_PP_VARIADIC_TO_SEQ(__VA_ARGS__) \ |
51 | 49 | ) \ |
52 | 50 | ) |
53 | 51 |
|
|
74 | 72 | } |
75 | 73 |
|
76 | 74 | #define MSGPACK_BASE_MAP(base) \ |
77 | | - (BOOST_PP_STRINGIZE(base))(*const_cast<base *>(static_cast<base const*>(this))) |
| 75 | + (MSGPACK_PP_STRINGIZE(base))(*const_cast<base *>(static_cast<base const*>(this))) |
78 | 76 |
|
79 | 77 | namespace msgpack { |
80 | 78 | /// @cond |
@@ -2798,6 +2796,4 @@ inline define_map<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A1 |
2798 | 2796 | /// @endcond |
2799 | 2797 | } // namespace msgpack |
2800 | 2798 |
|
2801 | | -#endif // defined(MSGPACK_USE_BOOST) |
2802 | | - |
2803 | 2799 | #endif // MSGPACK_CPP03_DEFINE_MAP_HPP |
0 commit comments