Boost logo

Boost :

Subject: Re: [boost] [Signal] Variadic template implementation of signal/slot
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-05-21 13:56:35


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

On Thursday 21 May 2009, Kevin Brandon wrote:

> One neat feature that my implementation does allow for is that both
> functions and function pointers are considered "slots" and all can connect
> to the signal of the correct signature.

But your interface only supports a subset of the slot types supported by
Boost.Signals, since it doesn't support functor objects such as those
returned by boost::bind.

However, your Signal class does highlight the fact that the boost signal0,
signal1, ..., signalN classes might be implemented through a single variadic
template class when compiling with a C++0x compiler. This might reduce
compile time overhead, since the compiler wouldn't have to generate and parse
all the individual signalN classes.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoVldQACgkQ5vihyNWuA4WUawCfbowj1FoBKHLqNqH1c1h3p/Nd
b3MAnieiVGk5pvW6rFYcGbzy4J0rXolW
=nLxw
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk