Can someone with Visual Studio take a look at bug #1076, please?

There is a test case attached to the bug: https://svn.boost.org/trac/boost/ticket/1076 Thanks! -- Marshall

There is a test case attached to the bug: https://svn.boost.org/trac/boost/ticket/1076
Test case fails for me with VC++, and with gcc 4. It looks to me as if it should fail as well - the functor event_handler isn't equality comparable. Adding the member: bool operator==(const event_handler&)const{ return true; } to class event_handler fixes things for me, but whether this is the correct fix, or whether this is supposed to work, I have no idea. HTH, John.

Marshall Clow-2 wrote:
There is a test case attached to the bug: https://svn.boost.org/trac/boost/ticket/1076
It looks like disconnecting like that requires the struct to be comparable. The example attached to the bug compiles ok in VC9 if you add an operator==(const event_handler&) to the event_handler struct. -- View this message in context: http://old.nabble.com/Can-someone-with-Visual-Studio-take-a-look-at-bug--107... Sent from the Boost - Dev mailing list archive at Nabble.com.

On Nov 30, 2009, at 2:50 AM, Richard Webb (and John Maddock) wrote:
Marshall Clow-2 wrote:
There is a test case attached to the bug: https://svn.boost.org/trac/boost/ticket/1076
It looks like disconnecting like that requires the struct to be comparable.
The example attached to the bug compiles ok in VC9 if you add an operator==(const event_handler&) to the event_handler struct.
Thanks. I've closed the bug as "invalid", but I think the documentation needs to be updated to mention this. -- Marshall
participants (3)
-
John Maddock
-
Marshall Clow
-
Richard Webb