bounce code |
bala_48225
|
Passing a pointer to a class into another class is a bad idea. You would do better to pass a constant reference to the class:
and then redefine the paddle's accessor as a const accessor:
Passing a pointer to a class like that, or as I used to do, passing a non-const reference, will mangle your data sooner or later. Especially if there is a pointer inside the class. |
|||||||||||||||
|