Re: sigc::connection and std::vector

This is not a gtk+ issue, you should ask on the gtkmm mailing list.

On ד', 2014-01-22 at 21:01 -0500, Phillip Susi wrote:
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?
gtk-list mailing list
gtk-list gnome org

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