Sorry I was working on complex copies when I screwed line 10 up, but what my real focus was was:
If in the main you said class box b(a); it would work as expected. But I don't understand how that makes sense. How can you set the adress of the object to another object. It would make sense to set it to another object's adress. Or is it that the reference operator is being used differenly than as an adress getter?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 91 posts
since Aug 2008