mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
std::vector<> iterators are not necessarily pointers
[SVN r10215]
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user