I really don't want to use a pointer here, but I think I have to. My problem is that I have two classes that both need members from each other, so I need to use forward declaration + pointers, etc. However, trying to access a vector from a pointer throws an error. Here's the code:
level is a pointer to class Level. This function is inside class GamePiece. Class Level includes class GamePiece, but GamePiece needs access to the vector CollisionObjects. This function throws a vector size error, and I'm totally lost on what to do.
Create a new vector, set it equal to level->GetCollisionObjects() (assuming, of course, that that function returns a vector). Use that new vector for accessing particular values.