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

std::vector<> iterators are not necessarily pointers

[SVN r10215]
This commit is contained in:
Jens Maurer
2001-05-24 10:42:37 +00:00
parent 6db04861ed
commit 2fa4bb7410

View File

@@ -48,7 +48,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.