Ticket #1076: testcase.cpp

File testcase.cpp, 376 bytes (added by boris@…, 15 years ago)
Line 
1#include <boost/signal.hpp>
2
3struct event_handler
4{
5 void operator()()
6 {
7 }
8};
9
10int main()
11{
12 event_handler eh;
13
14 boost::signal<void ()> sig;
15 sig.connect(eh);
16 sig.disconnect(eh); // VS2005 SP1 error C2678: binary '==' : no operator found which takes a left-hand operand of type 'const event_handler' (or there is no acceptable conversion)
17}