Skip to content

alenstarx/sigslot11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sigslot11

signals and slots using c++11 magic

example

#include "sigslot11.h"
#include <iostream>

class Button {
public:
    void push() {
        std::cout << "The button was pushed!" << std::endl;
    }
};

class Window {
public:
    sigslot11::Signal<void()> push_button;
};

int main()
{
    Window window;
    Button button;

    window.push_button.connect<Button, &Button::push>(&button);
    
    window.push_button();

    return 0;
}

About

signals and slots using c++11 magic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages