sigc::connection and std::vector



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I have an object that I wanted to maintain a sigc::connection in and
disconnect it when the object is destroyed.  The object is also stored
in a std::vector, which seems to copy and destroy objects as needed
when resizing the array.  It looks like when this happens, and the
original object is destroyed, and disconnects the connection, it
breaks the connection even though the object has been copied,
including the connection.

Is sigc::connection not copy safe using ref counting?  How can you get
around this?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJS4HfmAAoJEI5FoCIzSKrwELMH/2na9+Z6c3GszMr+hLQvsWS/
e1oIYs+L+BTX0iCgHCvIIS2ZfqDgDCsWh6hzCOfBo5hxTotsD8e7pvciw6dm8Kjm
zBedxi5W+43hSNX5HoQ9l6klUxdrMzn2Z4k/o8aNG9sNnJbanOWFs6UrV+W/+tz9
riPCiqoe4WzQeWV+tWgFJYYGqS4RFyR1/1AhzMkhYhAHmKcJ7N8SHTbk/FIg3Q+5
jNAAmBwmwR14uPmY7EnnGMv7VUOTM0KqPV0Gf6SVuYxM6k+9VlMv3Q+UX0IXJFuf
Cs5T8BPMCrf6Aa76G6W6eixcXH3IFGFYCw1m5pAM367PNbSjupAnCVuSiVixzic=
=XGLS
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]