
18 Aug
2008
18 Aug
'08
9:50 p.m.
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