
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 21 May 2009, Kevin Brandon wrote:
So with this all said, would there be any interest in having an attempt of Signals/Signals2 in varaidic template form?
If you like, you can try implementing a signals2/variadic_signal.hpp based on the preprocessor template code in signals2/detail/signal_template.hpp. I guess you'll have to wrap all the non-signature template parameters for the signal in a policy class that can be passed as the first template parameter to variadic_signal, since the variadic template parameter pack has to be last. I played around a bit with replacements for the arg1_type, arg2_type, etc typedefs, see the "signature" template in the attached file. It lets you extract the arity and individual argument types from the template parameter pack. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoWwPAACgkQ5vihyNWuA4WfCwCdF0RBo3aaeDcmCkj88x17rABw 28AAn37J3491L+aLk2SZzOo/2iI1pE2g =jkM+ -----END PGP SIGNATURE-----