|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58699 - trunk/boost/spirit/home/support/detail/lexer/parser
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-04 22:55:27
Author: hkaiser
Date: 2010-01-04 22:55:27 EST (Mon, 04 Jan 2010)
New Revision: 58699
URL: http://svn.boost.org/trac/boost/changeset/58699
Log:
Spirit: workaround for broken gcc 4.3.x behavior
Text files modified:
trunk/boost/spirit/home/support/detail/lexer/parser/parser.hpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Modified: trunk/boost/spirit/home/support/detail/lexer/parser/parser.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/parser/parser.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/parser/parser.hpp 2010-01-04 22:55:27 EST (Mon, 04 Jan 2010)
@@ -452,7 +452,7 @@
for (std::size_t i_ = 2; i_ < top_; ++i_)
{
curr_ = prev_->copy (node_ptr_vector_);
- tree_node_stack_.push (0);
+ tree_node_stack_.push (static_cast<node*>(0));
tree_node_stack_.top () = prev_;
sequence (node_ptr_vector_, tree_node_stack_);
prev_ = curr_;
@@ -463,7 +463,7 @@
if (token_._min > 1)
{
curr_ = prev_->copy (node_ptr_vector_);
- tree_node_stack_.push (0);
+ tree_node_stack_.push (static_cast<node*>(0));
tree_node_stack_.top () = prev_;
sequence (node_ptr_vector_, tree_node_stack_);
prev_ = curr_;
@@ -471,7 +471,7 @@
if (token_._comma && token_._max)
{
- tree_node_stack_.push (0);
+ tree_node_stack_.push (static_cast<node*>(0));
tree_node_stack_.top () = prev_;
optional (greedy_, node_ptr_vector_, tree_node_stack_);
prev_ = tree_node_stack_.top ();
@@ -482,7 +482,7 @@
for (std::size_t i_ = 1; i_ < count_; ++i_)
{
curr_ = prev_->copy (node_ptr_vector_);
- tree_node_stack_.push (0);
+ tree_node_stack_.push (static_cast<node*>(0));
tree_node_stack_.top () = prev_;
sequence (node_ptr_vector_, tree_node_stack_);
prev_ = curr_;
@@ -490,7 +490,7 @@
}
else
{
- tree_node_stack_.push (0);
+ tree_node_stack_.push (static_cast<node*>(0));
tree_node_stack_.top () = prev_;
zero_or_more (greedy_, node_ptr_vector_, tree_node_stack_);
prev_ = tree_node_stack_.top ();
@@ -498,7 +498,7 @@
}
}
- tree_node_stack_.push (0);
+ tree_node_stack_.push (static_cast<node*>(0));
tree_node_stack_.top () = prev_;
sequence (node_ptr_vector_, tree_node_stack_);
}
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