Hello. I'm trying to implement a similar system to signals/slots found in qt, with connections at runtime. Now I need to know the argument types for a given signal, like boost::function<>::first_arg_type and so on. Is this possible, and how? thank you very much.
Germán Diago wrote:
Hello. I'm trying to implement a similar system to signals/slots found in qt, with connections at runtime.
You might be interested in Boost's existing signals library: http://www.boost.org/doc/libs/1_38_0/doc/html/signals.html or its forthcoming thread-safe successor: http://www.comedi.org/projects/signals2/libs/signals2/doc/html/ http://www.boostpro.com/vault/index.php?&direction=0&order=&directory=thread_safe_signals (acceptance announcement:) http://archives.free.net.ph/message/20081120.052559.afd5261c.en.html
I could be wrong here, but it seems like you need a priori knowledge of the
signature to bind to it explicitly.
(e.g. you need to know the signature to bind it to something, either that or
make it an abstract signature. )
If you had a tinker-toy example, I may be able to help more.
Cheers,
Tim
On Mon, Feb 16, 2009 at 3:07 AM, Germán Diago
Hello. I'm trying to implement a similar system to signals/slots found in qt, with connections at runtime. Now I need to know the argument types for a given signal, like boost::function<>::first_arg_type and so on. Is this possible, and how? thank you very much. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Germán Diago
-
Nat Goodspeed
-
Tim St. Clair