summaryrefslogtreecommitdiff
path: root/boost/fusion/adapted/struct/detail/define_struct_inline.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/adapted/struct/detail/define_struct_inline.hpp')
-rw-r--r--boost/fusion/adapted/struct/detail/define_struct_inline.hpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/boost/fusion/adapted/struct/detail/define_struct_inline.hpp b/boost/fusion/adapted/struct/detail/define_struct_inline.hpp
index a037ffe549..1db1a2efe4 100644
--- a/boost/fusion/adapted/struct/detail/define_struct_inline.hpp
+++ b/boost/fusion/adapted/struct/detail/define_struct_inline.hpp
@@ -22,7 +22,7 @@
#include <boost/mpl/if.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/preprocessor/comma_if.hpp>
-#include <boost/preprocessor/facilities/is_empty.hpp>
+#include <boost/preprocessor/facilities/empty.hpp>
#include <boost/preprocessor/repeat.hpp>
#include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/seq/size.hpp>
@@ -62,7 +62,6 @@
~, \
ATTRIBUTES_SEQ) \
-#define BOOST_FUSION_IGNORE_1(ARG1)
#define BOOST_FUSION_IGNORE_2(ARG1, ARG2)
#define BOOST_FUSION_MAKE_COPY_CONSTRUCTOR(NAME, ATTRIBUTES_SEQ) \
@@ -425,17 +424,10 @@
#define BOOST_FUSION_DEFINE_STRUCT_INLINE_MEMBERS_IMPL_IMPL( \
NAME, ATTRIBUTES_SEQ, ATTRIBUTES_SEQ_SIZE) \
\
- /* Note: second BOOST_PP_IF is necessary to avoid MSVC warning when */ \
- /* calling BOOST_FUSION_IGNORE_1 with no arguments. */ \
NAME() \
- BOOST_PP_IF( \
- ATTRIBUTES_SEQ_SIZE, \
+ BOOST_PP_IF(ATTRIBUTES_SEQ_SIZE, \
BOOST_FUSION_MAKE_DEFAULT_INIT_LIST, \
- BOOST_FUSION_IGNORE_1) \
- (BOOST_PP_IF( \
- ATTRIBUTES_SEQ_SIZE, \
- ATTRIBUTES_SEQ, \
- 0)) \
+ BOOST_PP_EMPTY)(ATTRIBUTES_SEQ) \
{ \
} \
\