2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00

Minor fix, thanks to Jens Maurer.

[SVN r10377]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2001-06-21 20:46:26 +00:00
parent 7a71cea92a
commit 91f0728b55

View File

@@ -49,7 +49,7 @@ namespace { // Avoid cluttering the global namespace.
void delitem(std::vector<double>& vd, std::size_t key) {
if (key >= vd.size()) raise_vector_IndexError();
std::vector<double>::iterator vditer = vd.begin();
vd.erase(&vditer[key]);
vd.erase(vditer + key);
}
// Convert vector_double to a regular Python tuple.