interesting indeed! (constructor question)
hello again!
Am I going crazy...how is it possible for a temporary class object to be created and assigned the current value of the object as such:
Code:
Counter temp(*this);
if you didn't declare a constructor that accepts a parameter to receive that argument?? The code works fine too, that's what's freaking me out. ANY insight into this would be awesome...perhaps the this pointer has special abilities I was unaware of...
The only constructor I have is the default...