On Wed, May 13, 2015 at 12:38 PM, Edward Diener
On 5/12/2015 2:14 PM, Emil Dotchevski wrote:
On Tue, May 12, 2015 at 8:49 AM, Edward Diener
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
(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.)
It looks interesting but without a documented explanation I cannot figure out how it works. I don't think that one page of introduction, some examples and a reference is adequate. You should write something about what the parts of your system are, how they relate, and how they are used. I assume they form some sort of signal/slot system.
Thanks for the feedback -- I'll write a tutorial soon, though it's a very simple lib so you might find http://www.revergestudios.com/boost-synapse/Index_of_Functions.html and http://www.revergestudios.com/boost-synapse/Examples.html sufficiently helpful. Thanks, Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode