Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost:Signals and Bind question
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-02-02 19:16:41


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

On Monday 02 February 2009 18:45 pm, mararual wrote:
> CHelloService::connection_t
> CHelloService::connect(signal_t::slot_function_type subscriber)
> {
> return m_sig.connect(subscriber);
> }

You should forward slots with signal_t::slot_type, not
signal_t::slot_function_type. I believe the type erasure that occurs when
assigning something to slot_function_type will prevent visit_each from
finding any boost::trackable objects for automatic connection management
purposes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJh4zp5vihyNWuA4URAvS8AKCtWS20G/driWGZmLEaXh3bsz1dIQCfU4Cv
asnslZ58hbrCPgmEbkL6Kzw=
=U6/1
-----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