Instead of using
std::vector ObjectArray;
I would like it to be
MyArray ObjectArray;
Another way:
#include template struct MyArray :std::vector { }; void func() { MyArray my; my.push_back(5); MyArray::iterator i; }
Compiles for me, but you may find that some things available in vector<> need to be "pulled up" into MyArray.