Re: [Boost-bugs] [Boost C++ Libraries] #7680: Poor choice of difference_type for zip_iterator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7680: Poor choice of difference_type for zip_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-11 05:59:16


#7680: Poor choice of difference_type for zip_iterator
-------------------------------------+--------------------------------------
  Reporter: matthias_berndt@… | Owner: dave
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: iterator
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------+--------------------------------------

Comment (by anonymous):

 According to the [[http://www.boost.org/doc/libs/1_52_0/libs/iterator/doc
 /new-iter-concepts.html|iterator concepts]], the difference_type needs to
 be a signed integral type. It should thus easily be possible to choose the
 difference_type with the biggest range from the underlying iterator types.

 Also note that g++-4.7.2 emits a warning for the above code when compiled
 with -Wsign-conversion.

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