
30 Dec
2008
30 Dec
'08
5:47 p.m.
On Dec 30, 2008, at 10:48 AM, Mickael Wolff wrote:
James C. Sutherland a écrit :
mySignal.connect(a);
mySignal.connect(*a); // because connect copy the callback/functor.
I guess you have to write a callable_shared_ptr or something. I d'idn't find it in Boost.
I cannot dereference the pointer because I must be able to modify the object, and as you point out the connect method copies the argument... James