Boost C++ Libraries: Ticket #9562: boost::detail::operator_brackets_proxy::result_type::operator= return type is wrong https://svn.boost.org/trac10/ticket/9562 <p> From boost/iterator/detail/operator_brackets_dispatch.hpp: </p> <pre class="wiki">template &lt;class Iterator, class Reference&gt; struct operator_brackets_proxy { class result_type { Iterator const m_i; explicit result_type(Iterator const &amp; i) : m_i(i) { } friend struct operator_brackets_proxy; void operator=(result_type&amp;); public: operator Reference() const { return *m_i; } operator_brackets_proxy const &amp; operator=( typename Iterator::value_type const &amp; x) const { *m_i = x; return *this; } }; static result_type apply(Iterator const &amp; i) { return result_type(i); } }; </pre><p> The return type of <code>result_type::operator=</code> should be <code>result_type const &amp;</code>, not <code>operator_brackets_proxy const &amp;</code>. This looks like a typo. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9562 Trac 1.4.3 Eric Niebler Sat, 11 Jan 2014 23:13:51 GMT owner changed https://svn.boost.org/trac10/ticket/9562#comment:1 https://svn.boost.org/trac10/ticket/9562#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Thomas Witt</span> to <span class="trac-author">Dave Abrahams</span> </li> </ul> Ticket Dave Abrahams Tue, 14 Jan 2014 05:25:06 GMT owner changed https://svn.boost.org/trac10/ticket/9562#comment:2 https://svn.boost.org/trac10/ticket/9562#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Dave Abrahams</span> to <span class="trac-author">jeffrey.hellrung</span> </li> </ul> Ticket