Hello
I'm always having problems with including headers in my projects and forward declarations.
I always spend too much time before I get my problem solved and program compiled with 0 errors.
The questions Im unsure about.. When am I allowed to do forward declaration in header? When I have pointer or reference? Is this right?
Suppose I have:
Code:
class someclass {
someobject obj;
};
In that case I have to include header where someobject is declared?
Any good tips would be really welcome
Thanks for help