Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59156 - in trunk/boost/spirit/home: karma/nonterminal qi/nonterminal
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-20 09:43:23


Author: hkaiser
Date: 2010-01-20 09:43:22 EST (Wed, 20 Jan 2010)
New Revision: 59156
URL: http://svn.boost.org/trac/boost/changeset/59156

Log:
Spirit: fixing nasty bug in rule copy constructor
Text files modified:
   trunk/boost/spirit/home/karma/nonterminal/rule.hpp | 2 +-
   trunk/boost/spirit/home/qi/nonterminal/rule.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/karma/nonterminal/rule.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/nonterminal/rule.hpp (original)
+++ trunk/boost/spirit/home/karma/nonterminal/rule.hpp 2010-01-20 09:43:22 EST (Wed, 20 Jan 2010)
@@ -139,7 +139,7 @@
         }
 
         rule(rule const& rhs)
- : base_type(rhs)
+ : base_type(terminal::make(reference_(*this)))
           , name_(rhs.name_)
           , f(rhs.f)
         {

Modified: trunk/boost/spirit/home/qi/nonterminal/rule.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/rule.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/rule.hpp 2010-01-20 09:43:22 EST (Wed, 20 Jan 2010)
@@ -130,7 +130,7 @@
         }
 
         rule(rule const& rhs)
- : base_type(rhs)
+ : base_type(terminal::make(reference_(*this)))
           , name_(rhs.name_)
           , f(rhs.f)
         {


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