Boost C++ Libraries: Ticket #6256: Missing "return" statement in slice::get_indicies https://svn.boost.org/trac10/ticket/6256 <p> The implementation of boost::python::slice::get_indicies in 1.48.0 always returns an uninitialized boost::python::slice::range structure, in fact silently breaking the backward compatibility. </p> <p> A "return" statement appears to be missing in boost/python/slice.hpp:251 </p> <pre class="wiki">// Incorrect spelling. DO NOT USE. Only here for backward compatibility. // Corrected 2011-06-14. template&lt;typename RandomAccessIterator&gt; slice::range&lt;RandomAccessIterator&gt; get_indicies( const RandomAccessIterator&amp; begin, const RandomAccessIterator&amp; end) const { get_indices(begin, end); } </pre><p> The bug is still present in the trunk: <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/boost/python/slice.hpp"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/boost/python/slice.hpp</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6256 Trac 1.4.3 anonymous Mon, 12 Dec 2011 17:48:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6256#comment:1 https://svn.boost.org/trac10/ticket/6256#comment:1 <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> <p> Sorry for this oversight. Fixed now in both the trunk (<a class="changeset" href="https://svn.boost.org/trac10/changeset/75918" title="boost/python/slice.hpp: bug fix (track #6256)">r75918</a>) and the release branch (<a class="changeset" href="https://svn.boost.org/trac10/changeset/75919" title="merging current boost/python and libs/python from trunk into release branch">r75919</a>). </p> Ticket Wainer Vandelli <wainer.vandelli@…> Tue, 13 Dec 2011 07:54:06 GMT <link>https://svn.boost.org/trac10/ticket/6256#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6256#comment:2</guid> <description> <p> Thanks for the quick feedback. </p> </description> <category>Ticket</category> </item> </channel> </rss>