Re: [sigc] Functor from variable



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]