Boost C++ Libraries: Ticket #8061: iterator_range::size() return type should be size_type, not difference_type https://svn.boost.org/trac10/ticket/8061 <p> The return type of iterator_range::size() should be size_type. </p> <p> In the documentation (<a href="http://www.boost.org/doc/libs/1_53_0/libs/range/doc/html/range/reference/utilities/iterator_range.html">http://www.boost.org/doc/libs/1_53_0/libs/range/doc/html/range/reference/utilities/iterator_range.html</a>) the return type is size_type, in trunk and 1.53 it is difference_type. </p> <p> (This is same issue was discussed and resolved in Ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5971" title="#5971: Bugs: size() return type should be size_type, not difference_type (closed: fixed)">#5971</a>, however class iterator_range might be forgotten there) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8061 Trac 1.4.3 Mathias Gaunard Fri, 28 Jun 2013 15:38:08 GMT <link>https://svn.boost.org/trac10/ticket/8061#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8061#comment:1</guid> <description> <p> The fix is trivial, is a patch needed? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Mon, 24 Feb 2014 18:30:02 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8061#comment:2 https://svn.boost.org/trac10/ticket/8061#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket