$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r71624 - trunk/boost/spirit/home/support
From: thom.heller_at_[hidden]
Date: 2011-04-30 10:41:52
Author: theller
Date: 2011-04-30 10:41:51 EDT (Sat, 30 Apr 2011)
New Revision: 71624
URL: http://svn.boost.org/trac/boost/changeset/71624
Log:
[spirit] fixed issue with phoenix V3 and no predefined terminals
Text files modified: 
   trunk/boost/spirit/home/support/argument.hpp |    24 ++++++++--------                        
   trunk/boost/spirit/home/support/context.hpp  |    56 ++++++++++++++++++++--------------------
   2 files changed, 40 insertions(+), 40 deletions(-)
Modified: trunk/boost/spirit/home/support/argument.hpp
==============================================================================
--- trunk/boost/spirit/home/support/argument.hpp	(original)
+++ trunk/boost/spirit/home/support/argument.hpp	2011-04-30 10:41:51 EDT (Sat, 30 Apr 2011)
@@ -26,7 +26,7 @@
 #ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
 
 #define SPIRIT_DECLARE_ARG(z, n, data)                                        \
-    typedef phoenix::actor<argument<n> > const                                \
+    typedef phoenix::actor<argument<n> >                                      \
         BOOST_PP_CAT(BOOST_PP_CAT(_, BOOST_PP_INC(n)), _type);                \
     phoenix::actor<argument<n> > const                                        \
         BOOST_PP_CAT(_, BOOST_PP_INC(n)) =                                    \
@@ -41,7 +41,7 @@
 #else
 
 #define SPIRIT_DECLARE_ARG(z, n, data)                                        \
-    typedef phoenix::actor<argument<n> >  const                               \
+    typedef phoenix::actor<argument<n> >                                      \
         BOOST_PP_CAT(BOOST_PP_CAT(_, BOOST_PP_INC(n)), _type);                \
         /***/
 
@@ -175,27 +175,27 @@
     };
 
     // _0 refers to the whole attribute as generated by the lhs parser
-    typedef phoenix::actor<attribute_context<void> > const _0_type;
+    typedef phoenix::actor<attribute_context<void> > _0_type;
 #ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
-    _0_type _0 = _0_type();
+    _0_type const _0 = _0_type();
 #endif
 
     // _1, _2, ... refer to the attributes of the single components the lhs
     // parser is composed of
-    typedef phoenix::actor<argument<0> > const _1_type;
-    typedef phoenix::actor<argument<1> > const _2_type;
-    typedef phoenix::actor<argument<2> > const _3_type;
+    typedef phoenix::actor<argument<0> > _1_type;
+    typedef phoenix::actor<argument<1> > _2_type;
+    typedef phoenix::actor<argument<2> > _3_type;
 
 #ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
-    _1_type _1 = _1_type();
-    _2_type _2 = _2_type();
-    _3_type _3 = _3_type();
+    _1_type const _1 = _1_type();
+    _2_type const _2 = _2_type();
+    _3_type const _3 = _3_type();
 #endif
 
     // '_pass' may be used to make a match fail in retrospective
-    typedef phoenix::arg_names::_3_type const _pass_type;
+    typedef phoenix::arg_names::_3_type _pass_type;
 #ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
-    _pass_type _pass = _pass_type();
+    _pass_type const _pass = _pass_type();
 #endif
 
     //  Bring in the rest of the arguments and attributes (_4 .. _N+1), using PP
Modified: trunk/boost/spirit/home/support/context.hpp
==============================================================================
--- trunk/boost/spirit/home/support/context.hpp	(original)
+++ trunk/boost/spirit/home/support/context.hpp	2011-04-30 10:41:51 EDT (Sat, 30 Apr 2011)
@@ -230,47 +230,47 @@
         }
     };
     
-    typedef phoenix::actor<attribute<0> > const _val_type;
-    typedef phoenix::actor<attribute<0> > const _r0_type;
-    typedef phoenix::actor<attribute<1> > const _r1_type;
-    typedef phoenix::actor<attribute<2> > const _r2_type;
+    typedef phoenix::actor<attribute<0> > _val_type;
+    typedef phoenix::actor<attribute<0> > _r0_type;
+    typedef phoenix::actor<attribute<1> > _r1_type;
+    typedef phoenix::actor<attribute<2> > _r2_type;
 
 #ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
     // _val refers to the 'return' value of a rule (same as _r0)
     // _r1, _r2, ... refer to the rule arguments
-    _val_type _val = _val_type();
-    _r0_type _r0 = _r0_type();
-    _r1_type _r1 = _r1_type();
-    _r2_type _r2 = _r2_type();
+    _val_type const _val = _val_type();
+    _r0_type const _r0 = _r0_type();
+    _r1_type const _r1 = _r1_type();
+    _r2_type const _r2 = _r2_type();
 #endif
 
     //  Bring in the rest of the attributes (_r4 .. _rN+1), using PP
     BOOST_PP_REPEAT_FROM_TO(
         3, SPIRIT_ATTRIBUTES_LIMIT, SPIRIT_DECLARE_ATTRIBUTE, _)
 
-    typedef phoenix::actor<local_variable<0> > const _a_type;
-    typedef phoenix::actor<local_variable<1> > const _b_type;
-    typedef phoenix::actor<local_variable<2> > const _c_type;
-    typedef phoenix::actor<local_variable<3> > const _d_type;
-    typedef phoenix::actor<local_variable<4> > const _e_type;
-    typedef phoenix::actor<local_variable<5> > const _f_type;
-    typedef phoenix::actor<local_variable<6> > const _g_type;
-    typedef phoenix::actor<local_variable<7> > const _h_type;
-    typedef phoenix::actor<local_variable<8> > const _i_type;
-    typedef phoenix::actor<local_variable<9> > const _j_type;
+    typedef phoenix::actor<local_variable<0> > _a_type;
+    typedef phoenix::actor<local_variable<1> > _b_type;
+    typedef phoenix::actor<local_variable<2> > _c_type;
+    typedef phoenix::actor<local_variable<3> > _d_type;
+    typedef phoenix::actor<local_variable<4> > _e_type;
+    typedef phoenix::actor<local_variable<5> > _f_type;
+    typedef phoenix::actor<local_variable<6> > _g_type;
+    typedef phoenix::actor<local_variable<7> > _h_type;
+    typedef phoenix::actor<local_variable<8> > _i_type;
+    typedef phoenix::actor<local_variable<9> > _j_type;
 
 #ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
     // _a, _b, ... refer to the local variables of a rule
-    _a_type _a = _a_type();
-    _b_type _b = _b_type();
-    _c_type _c = _c_type();
-    _d_type _d = _d_type();
-    _e_type _e = _e_type();
-    _f_type _f = _f_type();
-    _g_type _g = _g_type();
-    _h_type _h = _h_type();
-    _i_type _i = _i_type();
-    _j_type _j = _j_type();
+    _a_type const _a = _a_type();
+    _b_type const _b = _b_type();
+    _c_type const _c = _c_type();
+    _d_type const _d = _d_type();
+    _e_type const _e = _e_type();
+    _f_type const _f = _f_type();
+    _g_type const _g = _g_type();
+    _h_type const _h = _h_type();
+    _i_type const _i = _i_type();
+    _j_type const _j = _j_type();
 #endif
 
     // You can bring these in with the using directive