#include #include typedef boost::variant foo; int main() { boost::signals2::signal test; test.connect([](const foo&) {}); test(foo()); return 0; }