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;
}
-
Notifications
You must be signed in to change notification settings - Fork 0
MemeTao/sigslots
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Single thread signal and signal slot implementation
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published