Re: [Boost-bugs] [Boost C++ Libraries] #5965: indirect_iterator conflicts with forward declaration

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5965: indirect_iterator conflicts with forward declaration
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-13 20:17:00


#5965: indirect_iterator conflicts with forward declaration
---------------------------------------------+------------------------------
  Reporter: Simon <simon.siemens@…> | Owner: dave
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: iterator
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+------------------------------

Comment (by jeffrey.hellrung):

 The immediate problem actually appears to lie in boost::pointee, so one
 can partially specialize boost::pointee for pointer types to avoid
 instantiating is_incrementable. However, after doing this, a new problem
 arises with instantiating boost::is_POD on the value_type of the
 indirect_iterator (which, in this case, is Derived) during determination
 of the return type of operator[]. So, a possible resolution for your
 specific example would be to disable operator[] when the traversal of the
 underlying iterator is not random access. I'll see what I can do to effect
 this.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5965#comment:1>
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:10 UTC