quote:that seems like a situation without a perfect or "clean" solution.. except maybe changing the whole design to something that avoids this kind of situation.Exactly ! It`s a design problem. Therefore you need to redesign it. It sucks, I know. I`ve spent last 4 days redesigning the classes in my engine so that I don`t have to supply 10 parameters(pointers) to each function. It`s just design fault. But believe me, you have to clean it, because sooner or later, your class .cpp file shall have about 5000 lines and compiling it each time shall cause you a grief, so you`ll have to clean it.
And you know what ? It`s much easier to read such clean code now, bugs are easier to find, because they are clearly in separate files, not in one file (as is the case when you have 2 classes in one header/cpp file).
VladR
Avenger 3D game