Boost C++ Libraries: Ticket #1947: traversal access decoupling https://svn.boost.org/trac10/ticket/1947 <p> In an attempt to use iterator_facade to implement a "Readable" and "Writeable" </p> <h2 class="section" id="SwapableRandomAccessiterator">"Swapable" "Random Access" iterator</h2> <p> 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". </p> <p> Consequently I can use </p> <p> value_type a; it[n] = a; </p> <p> but not a = it[n]; </p> <p> I am not sure of how to correctly solve this issue. Here is a pointer to a discussion on the list: </p> <p> <a class="ext-link" href="http://lists.boost.org/Archives/boost/2008/05/137868.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2008/05/137868.php</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1947 Trac 1.4.3 Roland Schwarz Sun, 25 May 2008 15:47:48 GMT attachment set https://svn.boost.org/trac10/ticket/1947 https://svn.boost.org/trac10/ticket/1947 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">iterator_facade.diff</span> </li> </ul> Ticket Roland Schwarz Sun, 25 May 2008 15:52:46 GMT type changed https://svn.boost.org/trac10/ticket/1947#comment:1 https://svn.boost.org/trac10/ticket/1947#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Support Requests</span> → <span class="trac-field-new">Patches</span> </li> </ul> <p> A straight forward solution that considers Sebastian Redls concerns is to never return the Reference type. </p> <p> Patch attached. </p> Ticket Dave Abrahams Sun, 06 Jun 2010 22:17:23 GMT owner changed https://svn.boost.org/trac10/ticket/1947#comment:2 https://svn.boost.org/trac10/ticket/1947#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Dave Abrahams</span> to <span class="trac-author">Thomas Witt</span> </li> </ul> <p> The hard part was making tests that would detect the absence of your fix. Unfortunately, I ran out of time to commit this and run it through the test/release-branch-merge cycle. My patch is attached. Reassigning to Thomas in hopes he has time for that. </p> Ticket Dave Abrahams Sun, 06 Jun 2010 22:17:51 GMT attachment set https://svn.boost.org/trac10/ticket/1947 https://svn.boost.org/trac10/ticket/1947 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-changes.diff</span> </li> </ul> Ticket Dave Abrahams Wed, 21 Nov 2012 22:38:25 GMT owner changed https://svn.boost.org/trac10/ticket/1947#comment:3 https://svn.boost.org/trac10/ticket/1947#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Thomas Witt</span> to <span class="trac-author">jeffrey.hellrung</span> </li> </ul> Ticket