I am confused.
I do this:
#include <vector>
// List iteration
typedef vector<registeredObject>::iterator iterator;
typedef vector<registeredObject>::const_iterator const_iterator;
vector<registeredObject>::iterator begin(void);
vector<registeredObject>::const_iterator begin(void) const;
vector<registeredObject>::iterator end(void);
vector<registeredObject>::const_iterator end(void) const;
I get errors like:
.: error: ISO C++ forbids declaration of 'vector' with no type
.: error: expected ';' before '<' token
for each one of the above uses of vector. This code compiles in older CodeWarrior, but XCode complains. What is the issue?
Is there a good reference?
[EDIT] Here is the entire header Here