Ticket #1076: testcase.cpp
File testcase.cpp, 376 bytes (added by , 15 years ago) |
---|
Line | |
---|---|
1 | #include <boost/signal.hpp> |
2 | |
3 | struct event_handler |
4 | { |
5 | void operator()() |
6 | { |
7 | } |
8 | }; |
9 | |
10 | int 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 | } |