[sigc] Interesting minor libsigc++ 2 problems
- From: Murray Cumming <murrayc murrayc com>
- To: libsigc++ list <libsigc-list gnome org>
- Subject: [sigc] Interesting minor libsigc++ 2 problems
- Date: Sat, 14 Feb 2004 18:11:11 +0100
These are not big problems, but they are interesting when porting to
libsigc++ 2:
1. In libsigc++ 1.2 you can do button.signal_clicked().connect(*this,
&Gtk::Widget::hide)
but in libsigc++ 2 you need to write a separate intermediate method to
handle the signal and then call hide().
2. In libsigc++ 1.2 you can override a method like so:
void do_something(const Slot0<void>& slot);
void do_something(const Slot1<void, int>& slot);
but in libsigc++ 2 that is ambiguous when you try to call
do_something().
Sorry for not giving actual compiler errors - I'm rushed.
--
Murray Cumming
www.murrayc.com
murrayc murrayc com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]