
On Tue, May 12, 2015 at 8:49 AM, Edward Diener <eldiener@tropicsoft.com> wrote:
On 5/11/2015 10:25 PM, Emil Dotchevski wrote:
Hello,
I realize that Boost has Signals library already, but I've implemented a non-intrusive one which approaches the problem differently, and I'm pretty sure that there is no overlap between the two. It turned out more generic than I originally anticipated, so I thought I'd ask if others would find it useful as well.
What do you mean by non-intrusive versus the signals2 library ?
As far as I can tell in Signals2 to emit a signal you must have access to the signal object, while synapse::emit takes an emitter object. For example, with Synapse you could write: QPushButton * b; ...... synapse::emit<button_clicked>(b); (Of course emit<> has no use for the type of its emitter argument -- the above would work just as well with a void pointer.) Emil