Skip to content

Latest commit

 

History

History
21 lines (21 loc) · 367 Bytes

readme.md

File metadata and controls

21 lines (21 loc) · 367 Bytes

sigslots项目说明

class Send{
    Send(){}
    Signal<int,double> signal_;
};
class Recive : public Slots{
    Recive(){}
    void rec(int i,double d){
        std::cout<<"i:"<<i<<",d:"<<d<<std::endl;
    }
};
int main()
{
    Send src;
    Recive handle;
    src.signal_.connect<Recive>(&handle,&Recive::rec);
    src.signal_(2,3);
    return 0;
}