From 584bd8575f6a1625b7b4bc60b279537c52236756 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Sun, 5 Jul 2015 07:46:11 +0900 Subject: [PATCH] Added the comment for BOOST_PP_VARIADICS define. --- erb/cpp03_define_map.hpp.erb | 4 ++++ include/msgpack/adaptor/detail/cpp03_define_map.hpp | 4 ++++ include/msgpack/adaptor/detail/cpp11_define_map.hpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/erb/cpp03_define_map.hpp.erb b/erb/cpp03_define_map.hpp.erb index 61a44660..e33e7785 100644 --- a/erb/cpp03_define_map.hpp.erb +++ b/erb/cpp03_define_map.hpp.erb @@ -20,6 +20,10 @@ #if defined(MSGPACK_USE_BOOST) +// BOOST_PP_VARIADICS is defined in boost/preprocessor/config/config.hpp +// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html +// However, supporting compiler detection is not complete. msgpack-c requires +// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly. #define BOOST_PP_VARIADICS #include diff --git a/include/msgpack/adaptor/detail/cpp03_define_map.hpp b/include/msgpack/adaptor/detail/cpp03_define_map.hpp index 42db9839..d0ebc9ac 100644 --- a/include/msgpack/adaptor/detail/cpp03_define_map.hpp +++ b/include/msgpack/adaptor/detail/cpp03_define_map.hpp @@ -20,6 +20,10 @@ #if defined(MSGPACK_USE_BOOST) +// BOOST_PP_VARIADICS is defined in boost/preprocessor/config/config.hpp +// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html +// However, supporting compiler detection is not complete. msgpack-c requires +// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly. #define BOOST_PP_VARIADICS #include diff --git a/include/msgpack/adaptor/detail/cpp11_define_map.hpp b/include/msgpack/adaptor/detail/cpp11_define_map.hpp index 58039926..4fd33b68 100644 --- a/include/msgpack/adaptor/detail/cpp11_define_map.hpp +++ b/include/msgpack/adaptor/detail/cpp11_define_map.hpp @@ -20,6 +20,10 @@ #if defined(MSGPACK_USE_BOOST) +// BOOST_PP_VARIADICS is defined in boost/preprocessor/config/config.hpp +// http://www.boost.org/libs/preprocessor/doc/ref/variadics.html +// However, supporting compiler detection is not complete. msgpack-c requires +// variadic macro arguments support. So BOOST_PP_VARIADICS is defined here explicitly. #define BOOST_PP_VARIADICS #include