Re: [Boost-bugs] [Boost C++ Libraries] #5628: filter_iterator - cannot convert from 'char' to 'char &'

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5628: filter_iterator - cannot convert from 'char' to 'char &'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-23 04:58:08


#5628: filter_iterator - cannot convert from 'char' to 'char &'
--------------------------------+-------------------------------------------
  Reporter: nen777w@… | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by ramey):

 I looked into this a little bit.

 Note that I made my own istream_iterator.hpp. I don't remember why I did
 this, but it would well be that the std::istream_iterator manifested this
 problem. Basically, the standard istream iterator is a single pass
 iterator so once a character is read, it has to be passed by value as
 there is no guarantee that the original character address makes any sense.
 I guess this conflicted with my iterator stack template meta programming
 implemenation so I had to make my own version. I can only speculate now
 as it was a long time ago.

 Note that my case is different in that I am/was using istream_iterator and
 you're using istreambuf iterator. (This is the first time I've seen
 this).

 In any case, I think that solves the mystery. Whether or not it addresses
 your interest I can't say but I can say I don't think it's an issue with
 the serialization library.

 Robert Ramey

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