Ticket #12123: Source.cpp

File Source.cpp, 231 bytes (added by Gabriel Marcano <gmarcano@…>, 7 years ago)

Reduced sample code illustrating code that fails to compile

Line 
1#include <boost/signals2.hpp>
2#include <boost/variant.hpp>
3
4typedef boost::variant<int> foo;
5
6int main()
7{
8 boost::signals2::signal<void(const foo&)> test;
9 test.connect([](const foo&) {});
10 test(foo());
11
12 return 0;
13}