#6256 closed Bugs (fixed)
Missing "return" statement in slice::get_indicies
| Reported by: | Owned by: | Ralf W. Grosse-Kunstleve | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | python USE GITHUB |
| Version: | Boost 1.48.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.

Sorry for this oversight. Fixed now in both the trunk (r75918) and the release branch (r75919).