Subject: [Boost-bugs] [Boost C++ Libraries] #6256: Missing "return" statement in slice::get_indicies
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-12 14:01:40
#6256: Missing "return" statement in slice::get_indicies
-------------------------------------+--------------------------------------
Reporter: wainer.vandelli@⦠| Owner: rwgk
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Python
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
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.
A "return" statement appears to be missing in boost/python/slice.hpp:251
{{{
// Incorrect spelling. DO NOT USE. Only here for backward compatibility.
// Corrected 2011-06-14.
template<typename RandomAccessIterator>
slice::range<RandomAccessIterator>
get_indicies( const RandomAccessIterator& begin,
const RandomAccessIterator& end) const
{
get_indices(begin, end);
}
}}}
The bug is still present in the trunk:
http://svn.boost.org/svn/boost/trunk/boost/python/slice.hpp
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6256> 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:50:08 UTC