Ticket #738: test.cpp
File test.cpp, 498 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | #include <crtdbg.h> |
2 | #include <boost/signals/signal0.hpp> |
3 | |
4 | void noop() {} |
5 | |
6 | int main() |
7 | { |
8 | _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); |
9 | _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); |
10 | _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); |
11 | |
12 | { |
13 | boost::signal0<void> test1; |
14 | boost::signal0<void> test2; |
15 | |
16 | boost::signal0<void>::slot_type slot(&noop); |
17 | |
18 | test1.connect(slot); |
19 | test2.connect(slot); |
20 | } |
21 | } |