Boost logo

Boost Users :

Subject: Re: [Boost-users] Passing reference to boost::bind object
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-04-08 09:32:42


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

On Wednesday 08 April 2009, david.weber_at_[hidden] wrote:
> So, we are implementing boost::signals/slots, and in several cases, we have
> a connect() function to allow us to hook up an arbitrary slot to the
> signal, without exposing the details of the signal for cleanliness issues.
>
> We would like to implement the signals::trackable interface, and have the
> objects which are passing in the bound slot manage their connections in
> this manner. However, we are passing them as boost::function objects

Pass slots through your interface as signal::slot_type objects. trackable
objects are discovered in the slot_type constructor. See the "passing slots"
portion of the tutorial.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkncp3oACgkQ5vihyNWuA4VrfwCghvy5gwKvWupGISZbpGkPyo7f
FCcAoIw9yMO2vcOdl95UqfSSwKELAMbq
=ouA9
-----END PGP SIGNATURE-----


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net