In what way are they 'off'?
How about normal copy construction and then update of the timer?
What are those uninitialized Listener references anyway?
Listener listener; // It not an reference my typo error
timeout callback function is implemented when the timer expires.
I AM VERY SURE THERE IS SOME PROBLEM BECAUSE OF copying TIMER.
When timer expires callback of listener is called.
And i need a new listener passed to copy constructor.
What does this have to do with ClientInfo? Constructor of 'timer' and nature of Listener are much more involved (and unknown to us).
Hi freind i think the definition is correct there was some basic mistake i was doing in my code. Was passing a local object clientInfo and storing the pointer.
Please just confirm the syntax i have written for copy constructor is correct.
I would be closing the post after your reply 2 solved :)