|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59490 - trunk/boost/spirit/home/support/iterators/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-02-04 19:35:50
Author: hkaiser
Date: 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
New Revision: 59490
URL: http://svn.boost.org/trac/boost/changeset/59490
Log:
Spirit: fixing const bug in multi_pass
Text files modified:
trunk/boost/spirit/home/support/iterators/detail/combine_policies.hpp | 8 ++++----
trunk/boost/spirit/home/support/iterators/detail/functor_input_policy.hpp | 2 +-
trunk/boost/spirit/home/support/iterators/detail/input_iterator_policy.hpp | 2 +-
trunk/boost/spirit/home/support/iterators/detail/istream_policy.hpp | 2 +-
trunk/boost/spirit/home/support/iterators/detail/lex_input_policy.hpp | 2 +-
trunk/boost/spirit/home/support/iterators/detail/multi_pass.hpp | 2 +-
trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp | 4 ++--
7 files changed, 11 insertions(+), 11 deletions(-)
Modified: trunk/boost/spirit/home/support/iterators/detail/combine_policies.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/combine_policies.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/combine_policies.hpp 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
@@ -118,7 +118,7 @@
{ Input::advance_input(mp); }
template <typename TokenType, typename MultiPass>
- inline static TokenType const& get_input(MultiPass& mp)
+ inline static TokenType& get_input(MultiPass& mp)
{ return Input::template get_input<TokenType>(mp); }
template <typename MultiPass>
@@ -194,7 +194,7 @@
{ Input::advance_input(mp); }
template <typename TokenType, typename MultiPass>
- inline static TokenType const& get_input(MultiPass& mp)
+ inline static TokenType& get_input(MultiPass& mp)
{ return Input::template get_input<TokenType>(mp); }
template <typename MultiPass>
@@ -283,7 +283,7 @@
{ Input::advance_input(mp); }
template <typename TokenType, typename MultiPass>
- inline static TokenType const& get_input(MultiPass& mp)
+ inline static TokenType& get_input(MultiPass& mp)
{ return Input::template get_input<TokenType>(mp); }
template <typename MultiPass>
@@ -381,7 +381,7 @@
{ Input::advance_input(mp); }
template <typename TokenType, typename MultiPass>
- inline static TokenType const& get_input(MultiPass& mp)
+ inline static TokenType& get_input(MultiPass& mp)
{ return Input::template get_input<TokenType>(mp); }
template <typename MultiPass>
Modified: trunk/boost/spirit/home/support/iterators/detail/functor_input_policy.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/functor_input_policy.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/functor_input_policy.hpp 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
@@ -59,7 +59,7 @@
public:
// get the next token
template <typename ValueType, typename MultiPass>
- static ValueType const& get_input(MultiPass& mp)
+ static ValueType& get_input(MultiPass& mp)
{
value_type& curtok = mp.shared()->curtok;
if (!input_is_valid(mp, curtok))
Modified: trunk/boost/spirit/home/support/iterators/detail/input_iterator_policy.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/input_iterator_policy.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/input_iterator_policy.hpp 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
@@ -67,7 +67,7 @@
static void destroy(MultiPass&) {}
template <typename ValueType, typename MultiPass>
- static ValueType const& get_input(MultiPass& mp)
+ static ValueType& get_input(MultiPass& mp)
{
return *mp.shared()->input_;
}
Modified: trunk/boost/spirit/home/support/iterators/detail/istream_policy.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/istream_policy.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/istream_policy.hpp 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
@@ -45,7 +45,7 @@
static void destroy(MultiPass&) {}
template <typename ValueType, typename MultiPass>
- static ValueType const& get_input(MultiPass& mp)
+ static ValueType& get_input(MultiPass& mp)
{
if (!mp.shared()->initialized_)
advance_input(mp);
Modified: trunk/boost/spirit/home/support/iterators/detail/lex_input_policy.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/lex_input_policy.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/lex_input_policy.hpp 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
@@ -38,7 +38,7 @@
public:
template <typename MultiPass>
- static value_type const& get_input(MultiPass& mp)
+ static value_type& get_input(MultiPass& mp)
{
value_type& curtok = mp.shared()->curtok;
if (-1 == curtok)
Modified: trunk/boost/spirit/home/support/iterators/detail/multi_pass.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/multi_pass.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/multi_pass.hpp 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
@@ -61,7 +61,7 @@
static void advance_input(MultiPass& mp);
template <typename TokenType, typename MultiPass>
- static TokenType const& get_input(MultiPass& mp);
+ static TokenType& get_input(MultiPass& mp);
template <typename MultiPass>
static bool input_at_eof(MultiPass const& mp);
Modified: trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/detail/split_functor_input_policy.hpp 2010-02-04 19:35:47 EST (Thu, 04 Feb 2010)
@@ -76,7 +76,7 @@
// get the next token
template <typename ValueType, typename MultiPass>
- static ValueType const& get_input(MultiPass& mp)
+ static ValueType& get_input(MultiPass& mp)
{
value_type& curtok = mp.shared()->curtok;
using namespace split_functor_input_is_valid_test_;
@@ -139,7 +139,7 @@
public:
// get the next token
template <typename ValueType, typename MultiPass>
- static ValueType const& get_input(MultiPass& mp)
+ static ValueType& get_input(MultiPass& mp)
{
value_type& curtok = mp.shared()->curtok;
using namespace split_functor_input_is_valid_test_;
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