Hi, i'm having trouble finding a way around a situation like this:
obviously this wont compile as b hasn't been declared before it's use in aCode:class a{ protected: vector <b> B; int some_int; }; class b: public a{ protected: change_int(){some_int = 5;} };
however if i predeclare it:
i just get different errors. What's the best way around this?Code:class b;