The compiler yells at me when I try to make use of a definition in the code above where it is defined.
Is there a way to prototype a class before you define it, like there is with functions, so that I can let the compiler know that type2 is there for type1?Code:class type1
{
type2 next; //It hasn't seen type2 yet, so it shouts at me here
};
class type2
{
type1 previous;
};