//parent.h File
I am currently having some serious circular dependency issues with my design. Is there a way to declare an object(not a pointer) in this case. Does circular dependency occur because of a serious design flaw?Code:#include "child.h" class child; class parent { child *pc; child c; //Gives ERROR }; //child.h File class parent; class child { parent *pp; parent p; //Gives ERROR };