From 5e9e7f31a45187a2ec4a0b2f5add9c7b7b833a04 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Mon, 2 Apr 2007 05:13:25 +0000 Subject: [PATCH] wrong library, FUSION, not SPIRIT [SVN r37332] --- .../sequence/adapted/struct/adapt_struct.hpp | 22 +++++++++---------- test/sequence/adapt_struct.cpp | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/boost/fusion/sequence/adapted/struct/adapt_struct.hpp b/include/boost/fusion/sequence/adapted/struct/adapt_struct.hpp index 3afea18c..38d03edb 100644 --- a/include/boost/fusion/sequence/adapted/struct/adapt_struct.hpp +++ b/include/boost/fusion/sequence/adapted/struct/adapt_struct.hpp @@ -29,21 +29,21 @@ #include #include -#define BOOST_SPIRIT_ADAPT_STRUCT(name, bseq) \ - BOOST_SPIRIT_ADAPT_STRUCT_I( \ - name, BOOST_PP_CAT(BOOST_SPIRIT_ADAPT_STRUCT_X bseq, 0)) \ +#define BOOST_FUSION_ADAPT_STRUCT(name, bseq) \ + BOOST_FUSION_ADAPT_STRUCT_I( \ + name, BOOST_PP_CAT(BOOST_FUSION_ADAPT_STRUCT_X bseq, 0)) \ /***/ -#define BOOST_SPIRIT_ADAPT_STRUCT_X(x, y) ((x, y)) BOOST_SPIRIT_ADAPT_STRUCT_Y -#define BOOST_SPIRIT_ADAPT_STRUCT_Y(x, y) ((x, y)) BOOST_SPIRIT_ADAPT_STRUCT_X -#define BOOST_SPIRIT_ADAPT_STRUCT_X0 -#define BOOST_SPIRIT_ADAPT_STRUCT_Y0 +#define BOOST_FUSION_ADAPT_STRUCT_X(x, y) ((x, y)) BOOST_FUSION_ADAPT_STRUCT_Y +#define BOOST_FUSION_ADAPT_STRUCT_Y(x, y) ((x, y)) BOOST_FUSION_ADAPT_STRUCT_X +#define BOOST_FUSION_ADAPT_STRUCT_X0 +#define BOOST_FUSION_ADAPT_STRUCT_Y0 -// BOOST_SPIRIT_ADAPT_STRUCT_I generates the overarching structure and uses +// BOOST_FUSION_ADAPT_STRUCT_I generates the overarching structure and uses // SEQ_FOR_EACH_I to generate the "linear" substructures. // Thanks to Paul Mensonides for the PP macro help -#define BOOST_SPIRIT_ADAPT_STRUCT_I(name, seq) \ +#define BOOST_FUSION_ADAPT_STRUCT_I(name, seq) \ namespace boost { namespace fusion { namespace traits \ { \ template <> \ @@ -56,11 +56,11 @@ { \ template <> \ struct struct_size : mpl::int_ {}; \ - BOOST_PP_SEQ_FOR_EACH_I(BOOST_SPIRIT_ADAPT_STRUCT_C, name, seq) \ + BOOST_PP_SEQ_FOR_EACH_I(BOOST_FUSION_ADAPT_STRUCT_C, name, seq) \ }}} \ /***/ -#define BOOST_SPIRIT_ADAPT_STRUCT_C(r, name, i, xy) \ +#define BOOST_FUSION_ADAPT_STRUCT_C(r, name, i, xy) \ template <> \ struct struct_member \ { \ diff --git a/test/sequence/adapt_struct.cpp b/test/sequence/adapt_struct.cpp index 91104b31..114b8862 100644 --- a/test/sequence/adapt_struct.cpp +++ b/test/sequence/adapt_struct.cpp @@ -36,7 +36,7 @@ namespace ns }; } -BOOST_SPIRIT_ADAPT_STRUCT( +BOOST_FUSION_ADAPT_STRUCT( ns::point, (int, x) (int, y)