|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55228 - in trunk/boost/spirit/home: karma/nonterminal qi/nonterminal
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-30 14:44:02
Author: hkaiser
Date: 2009-07-28 08:23:19 EDT (Tue, 28 Jul 2009)
New Revision: 55228
URL: http://svn.boost.org/trac/boost/changeset/55228
Log:
Spirit: restored rule copy constructor
Text files modified:
trunk/boost/spirit/home/karma/nonterminal/rule.hpp | 7 ++++++-
trunk/boost/spirit/home/qi/nonterminal/rule.hpp | 7 ++++++-
2 files changed, 12 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 2009-07-28 08:23:19 EDT (Tue, 28 Jul 2009)
@@ -183,7 +183,12 @@
{
}
- // the default copy constructor does the right thing
+ rule(rule const& rhs)
+ : base_type(terminal::make(alias()))
+ , name_(rhs.name_)
+ , f(rhs.f)
+ {
+ }
rule& operator=(rule const& rhs)
{
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 2009-07-28 08:23:19 EDT (Tue, 28 Jul 2009)
@@ -176,7 +176,12 @@
{
}
- // the default copy constructor does the right thing
+ rule(rule const& rhs)
+ : base_type(terminal::make(alias()))
+ , name_(rhs.name_)
+ , f(rhs.f)
+ {
+ }
rule& operator=(rule const& rhs)
{
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