So I've searched for an answer to this and I've found lots of relevant info but nothing answering this exactly.
I've seen lots of advice about when to use pointers to objects saying just use an actual object instead whenever possible. I've also seen advice about circular dependencies saying to not include a .h file in a .h file whenever possible. I've fixed a lot of my code (in terms of circular dependencies) by switching object members of classes to pointers to the objects. I end up with a lot of pointer members, seemingly going against the first piece of advice.
My question is, is it a bad idea to just switch all my object members to pointers to resolve circular dependencies? Or does that signify a bad structuring of my classes and that I need a redesign? Or maybe more precisely, does having a circular dependency justify the changing of an object member to a pointer? Or would it come down to each case too specifically?
I apologize if this doesn't make any sense as I am not an experienced programmer.
Thanks