Re: [Boost-bugs] [Boost C++ Libraries] #1315: iterator_adaptor does not work with incomplete Value types

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1315: iterator_adaptor does not work with incomplete Value types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-22 15:52:10


#1315: iterator_adaptor does not work with incomplete Value types
--------------------------------------+-------------------------------------
  Reporter: joaquin | Owner: jeffrey.hellrung
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: iterator
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------

Comment (by Duncan Exon Smith <duncanphilipnorman@…>):

 Since I saw this changed owners, I should maybe give some feedback. We've
 been using something similar to
 [http://lists.boost.org/Archives/boost/2007/10/128738.php the workaround
 above] for a couple of years, and it has worked well.
  - There are a few places in the file that need to be templated on
 `Difference`.
  - We've applied similar patches to parts of Boost.Range.

 E.g., our version of the relevant code from the linked patch is:
  {{{
 #!cpp
     template <typename DummyDifference>
         typename boost::lazy_enable_if
         < boost::is_convertible<DummyDifference, difference_type>
         , typename
 boost::detail::operator_brackets_result<Derived,Value,reference,DummyDifference>::type
>::type
     operator[](DummyDifference n_) const
     {
         difference_type n(n_);
 }}}

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