So I have declared a vector in my class header like this:
 ...
 private:
    vector<Instruction> instructions;
 ...
Then in the .cpp implementation in the constructor, I try to initialize it like this:
 instructions = new vector<Instruction>();
Xcode tells me: No viable overloaded '='
I am basically trying to get this class to behave like I would expect in java, where instances of the class retain this vector. Thats why I wanted to dynamically allocate it using new, so as to make sure that it doesn't get lost on the stack or something. Any help would be appreciated with this, thanks so much.
 
     
     
     
     
     
     
     
     
    