$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: joel_at_[hidden]
Date: 2008-04-18 16:23:50
Author: djowel
Date: 2008-04-18 16:23:49 EDT (Fri, 18 Apr 2008)
New Revision: 44555
URL: http://svn.boost.org/trac/boost/changeset/44555
Log:
disallow mutability of attribute in actions
Text files modified: 
   trunk/boost/spirit/home/qi/action/action.hpp |     9 ++++++++-                               
   1 files changed, 8 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/qi/action/action.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/action/action.hpp	(original)
+++ trunk/boost/spirit/home/qi/action/action.hpp	2008-04-18 16:23:49 EDT (Fri, 18 Apr 2008)
@@ -32,6 +32,13 @@
         {
         };
 
+        template <typename F, typename Attribute, typename Context>
+        static bool const_action_dispatch(
+            F const& f, Attribute const& attr, Context& context)
+        {
+            return spirit::detail::action_dispatch(f, attr, context);
+        }
+
         template <
             typename Component
           , typename Iterator, typename Context
@@ -62,7 +69,7 @@
             {
                 // call the function, passing the attribute, the context.
                 // The client can return false to fail parsing.
-                return spirit::detail::action_dispatch(
+                return const_action_dispatch(
                     spirit::right(component), attr, context);
             }
             return false;