|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56999 - in trunk/boost/spirit/home: karma/nonterminal qi/nonterminal
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-19 13:05:26
Author: hkaiser
Date: 2009-10-19 13:05:25 EDT (Mon, 19 Oct 2009)
New Revision: 56999
URL: http://svn.boost.org/trac/boost/changeset/56999
Log:
Spirit: removed undefined behavior in grammar initialization
Text files modified:
trunk/boost/spirit/home/karma/nonterminal/grammar.hpp | 2 +-
trunk/boost/spirit/home/qi/nonterminal/grammar.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/karma/nonterminal/grammar.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/nonterminal/grammar.hpp (original)
+++ trunk/boost/spirit/home/karma/nonterminal/grammar.hpp 2009-10-19 13:05:25 EDT (Mon, 19 Oct 2009)
@@ -55,7 +55,7 @@
grammar(start_type const& start
, std::string const& name_ = "unnamed-grammar")
- : proto::extends<terminal, base_type>(terminal::make(start.alias()))
+ : proto::extends<terminal, base_type>(terminal::make(reference_(start)))
, name_(name_)
{}
Modified: trunk/boost/spirit/home/qi/nonterminal/grammar.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/grammar.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/grammar.hpp 2009-10-19 13:05:25 EDT (Mon, 19 Oct 2009)
@@ -51,7 +51,7 @@
grammar(
start_type const& start
, std::string const& name_ = "unnamed-grammar")
- : proto::extends<terminal, base_type>(terminal::make(start.alias()))
+ : proto::extends<terminal, base_type>(terminal::make(reference_(start)))
, name_(name_)
{}
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