Re: [gtkmm] Re: [sigc] Imminent libsigc++ 1.2 API freeze
- From: MHL Schulze t-online de (Martin Schulze)
- To: murrayc usa net
- Cc: libsigc-list <libsigc-mlist lists sourceforge net>, gtkmm-list gnome org
- Subject: Re: [gtkmm] Re: [sigc] Imminent libsigc++ 1.2 API freeze
- Date: Wed, 24 Jul 2002 22:26:27 +0200
Am 24.07.2002 21:46 schrieb(en) Murray Cumming:
On Wed, 2002-07-24 at 20:32, Jarek Dukat wrote:
> > Actually I think you want SigC::bind_return().
>
> No. Bind return can't bind `bool foo();' to `void foo()', it works in
> reverse situation.
That would be hide_return(), I think. I don't think we have that.
Something for libsigc_extras.
Just to make clear: it works like so:
int foo();
Signal0<void> signal0;
signal0.connect(retype_return<void>(slot(&foo)));
Not very intuitive at first sight but easy to remember once you got it.
We could add a stub hide_return() that does exactly the same, though.
Regards,
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]