Re: [Boost-bugs] [Boost C++ Libraries] #3999: multi_pass cannot deal with all input iterators

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3999: multi_pass cannot deal with all input iterators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-12 02:24:53


#3999: multi_pass cannot deal with all input iterators
---------------------------+------------------------------------------------
  Reporter: cornedbee | Owner: hkaiser
      Type: Bugs | Status: closed
 Milestone: Boost 1.43.0 | Component: spirit
   Version: Boost 1.42.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------+------------------------------------------------

Comment(by anonymous):

 The commit mention above fixes the return value issue. Thanks for pointing
 this out!

 The problem with Microsofts istreambuf_iterator has already been discussed
 on Spirit's mailing list. So I recently added a new input policy:
 buffering_input_iterator which is buffering the last character it got from
 the underlying iterator, which allows to return a refernce from
 multi_pass' operator*() in this case as well. This new policy is now the
 default input policy when using make_multi_pass(). It's a bit less
 efficient than the input_iterator policy, but helps to overcome the
 problem you described.

 Regards Hartmut

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3999#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC