Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63672 - trunk/boost/spirit/home/lex/lexer/lexertl
From: hartmut.kaiser_at_[hidden]
Date: 2010-07-05 15:43:13


Author: hkaiser
Date: 2010-07-05 15:43:11 EDT (Mon, 05 Jul 2010)
New Revision: 63672
URL: http://svn.boost.org/trac/boost/changeset/63672

Log:
Spirit: Added a clarifying comment
Text files modified:
   trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp (original)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/lexer.hpp 2010-07-05 15:43:11 EDT (Mon, 05 Jul 2010)
@@ -265,6 +265,10 @@
         template <typename F>
         void add_action(id_type unique_id, std::size_t state, F act)
         {
+ // If you see an error here stating add_action is not a member of
+ // fusion::unused_type the you are probably having semantic actions
+ // attached to at least one token in the lexer definition without
+ // using the lex::lexertl::actor_lexer<> as its base class.
             typedef typename Functor::wrap_action_type wrapper_type;
             actions_.add_action(unique_id, state, wrapper_type::call(act));
         }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk