Re: [sigc] Functor from variable
- From: Martin Schulze <martin-ml hippogriff de>
- To: Roger Ferrer Ibáñez <rofi ya com>
- Cc: libsigc-list gnome org
- Subject: Re: [sigc] Functor from variable
- Date: Fri, 6 Aug 2004 11:51:32 +0200
Am 06.08.2004 11:07:54 schrieb(en) Roger Ferrer Ibáñez:
Martin Schulze wrote:
| Am 05.08.2004 20:37:45 schrieb(en) Roger Ferrer Ibáñez:
|
|> Hello,
|>
|> I was just wondering if it is possible in libsigc++ to create a
functor
|> from a variable. So you get a functor that returns the value of
this
|> variable and receives no parameter.
|>
|
| I'm not sure without trying myself, but please let me know whether
the
| following code works:
|
| #include <sigc++/adaptors/lambda/lambda.h>
| [...]
| readValue.connect(sigc::var(data));
| [...]
Yes it does. Thank you!
Cool! We must mention it somewhere in the documentation. I'll open a
bugzilla bug this evening so that we don't forget. Or maybe you can do
this (bugzilla.gnome.org)?
Regards,
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]