[Boost-bugs] [Boost C++ Libraries] #1947: traversal access decoupling

Subject: [Boost-bugs] [Boost C++ Libraries] #1947: traversal access decoupling
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-25 14:21:10

#1947: traversal access decoupling
 Reporter: speedsnail | Owner: dave
     Type: Support Requests | Status: new
Milestone: Boost 1.36.0 | Component: iterator
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
 In an attempt to use iterator_facade to
 implement a "Readable" and "Writeable"
 == "Swapable" "Random Access" iterator
 I found that the expression:
 it[n] returns an object of type
 operator_brackets_proxy that is convert-
 ible to "reference" but not to "value_type".

 Consequently I can use

 value_type a;
 it[n] = a;

 but not
 a = it[n];

 I am not sure of how to correctly solve
 this issue. Here is a pointer to a
 discussion on the list:


Ticket URL: <http://svn.boost.org/trac/boost/ticket/1947>
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:49:57 UTC