Boost logo

Boost Users :

From: Christian Larsen (contact_at_[hidden])
Date: 2008-08-18 17:50:17


Peter Dimov skrev:
[SNIP]
> As you've seen, 'a' contains listenerA. It's not possible to compare
> two boost::function objects for equality. Boost.Signals solves the
> 'remove' problem by returning a dedicated token from 'add'
> (boost::connection in its case) which you can then pass to 'remove'.

Aha! That is the elegant solution I was looking for. Thanks a lot.

--Christian


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