NoAvailableAlias / nano-signal-slot

Pure C++17 Signals and Slots
MIT License
407 stars 60 forks source link

emit_accumulate not working. #17

Closed Wolftein closed 8 years ago

Wolftein commented 8 years ago

    auto p_Fun1 = []()
    {
      return 5.0;
    };

    Nano::Signal<double()> SIGNAL;
    SIGNAL.connect(p_Fun1);
    SIGNAL.connect(p_Fun1);

    SIGNAL.emit_accumulate([&](double x)
    {
        printf("%d\n", x); // This will always print 0
    });
Wolftein commented 8 years ago

Oops, issue on my side, it actually works perfectly. Sorry.