Hey there , i have two classes , and unfortunatelly, I made it in a way where they both have to include each other. Rookie mistake i know , but i managed to ,bypass the issue by including one of the header files in the cpp file.
I’m pretty sure its not the best method to do this, and next time i should write the code , in a better way, but I just wonder how bad this method is. Can i face problems in the future with this?
It is a really bad practice and should not be done. There is a diamond dependency problem in programming, diamond dependency can be managed, but it is usually avoided. I guess you would not get any problems, if you really manage these dependencies, but in a long term, it would be a headache.