I have a written a custom vector of user defined objects. I need to use something like
for x in vec:
print(x.function())
However, I might have missed something and I am facing a
ERROR: Attempted to access index "64" of a vector of objects, but the vector is only of size "64"
It did print out the first 63 just, could not stop before 64.
However this works fine
for x in range(vec.size()):
print(vec[x].function())
Could anyone figure out what function(s) did I miss in my implementation of iterator or is it simple not allowed in python? If someone could detail out what functions are called in a expr like "for x in vec:" that would be helpful.