[Boost-bugs] [Boost C++ Libraries] #12208: Lexer does not work with boost::spirit::istream_iterator

Subject: [Boost-bugs] [Boost C++ Libraries] #12208: Lexer does not work with boost::spirit::istream_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-16 06:14:06


#12208: Lexer does not work with boost::spirit::istream_iterator
------------------------------+---------------------
 Reporter: edaskel@… | Owner: hkaiser
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: wave
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 According to the documentation, any forward iterator should be usable for
 the input stream iterator. boost::spirit::istream_iterator is a forward
 iterator, yet I find boost::wave::lexing_exception is called when it is
 used instead of std::string_iterator. Further, the Changelog has this to
 say:

 TODO (known issues):
 ...
 - Fix the re2c lexer for iterators others then string::iterator (or more
   generally for iterators, which aren't random access iterators)

 which implies that this is a known problem.

 Either the documentation should indicate that a random access iterator is
 required (and this should be enforced with an iterator traits check), or
 the code should be fixed to only require a forward iterator.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12208>
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:20 UTC