-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No API to prepend a slot #81
Comments
signal::slots() was deprecated 6 years ago with the comment This is apparently not useful, It would be possible to add slots() to sigc++-3.0, but if you just want to be able |
I'm happy to close this without further action. I've realised the code I was trying to port can be written in a better way without |
Reopening, because as it turns out, someone really does need it.
Not so; attempting to rewrite that extremely fragile code didn't go well, and introduced this crash. Instead, I ended up emulating the removed feature using a vector of As the above case study shows, |
Blimey that was fast! Thank you! |
In sigc++-3.0 direct access to the slots list via
slots()
was removed. Previously, this made it possible to add a slot at the start of the list of slots, rather than at the end asconnect()
does. Now, this is no longer possible. Not only is there no direct API to do it, even attempting to implement it using the various base classes ofsigc::signal
invariably runs into the need to access thesignal_impl
, which is in a detail namespace so should not be accessed.Note that this isn't a particularly serious problem as I can work around it.
The text was updated successfully, but these errors were encountered: