C++实现的信号与槽
#include <algorithm>#include <iostream>#include <vector>using namespace std;#define Connect(sender, signal, receiver, method) ((sender)->signal.Bind(receiver, method))/** func: 槽函数基类* parm:* return:*/t