From 020b22f9b9fd16762cd568aaaf8313d9c9d741fe Mon Sep 17 00:00:00 2001 From: "Damien Buhl (alias daminetreg)" Date: Mon, 20 Oct 2014 22:32:28 +0200 Subject: [PATCH] Fix test for compiler not supporting BOOST_PP_VARIADIC. --- test/sequence/adapt_assoc_tpl_adt.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/sequence/adapt_assoc_tpl_adt.cpp b/test/sequence/adapt_assoc_tpl_adt.cpp index d8bd0864..8aa600ff 100644 --- a/test/sequence/adapt_assoc_tpl_adt.cpp +++ b/test/sequence/adapt_assoc_tpl_adt.cpp @@ -51,6 +51,7 @@ namespace ns }; } +#if BOOST_PP_VARIADICS BOOST_FUSION_ADAPT_ASSOC_TPL_ADT( (X)(Y)(Z), (ns::point)(X)(Y)(Z), @@ -58,6 +59,17 @@ BOOST_FUSION_ADAPT_ASSOC_TPL_ADT( (Y, Y, obj.get_y(), obj.set_y(val), ns::y_member) (obj.get_z(), obj.set_z(val), ns::z_member) ) + +#else // BOOST_PP_VARIADICS +BOOST_FUSION_ADAPT_ASSOC_TPL_ADT( + (X)(Y)(Z), + (ns::point)(X)(Y)(Z), + (X, X, obj.get_x(), obj.set_x(val), ns::x_member) + (Y, Y, obj.get_y(), obj.set_y(val), ns::y_member) + (BOOST_FUSION_ADAPT_AUTO, BOOST_FUSION_ADAPT_AUTO, obj.get_z(), obj.set_z(val), ns::z_member) +) + +#endif int main()