Re: [sigc] Functor from variable



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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!

|
| Regards,
|
|  Martin
|
|
- --
Roger Ferrer Ibáñez
Correu: rofi ya com
Correu (FIB): b4270692 est fib upc es
Correu (Casa): roger pinchito com
Correu (JEDI): rogerf jedi upc es
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBE0mhs5A+cAGo9FoRAoZGAKCXGm+O1pB94e2rk4D/kzZ40G/0GwCgkYLs
PqxFo318DEQSY2hkEGKMiuk=
=RSbn
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]