palacaze/sigslot

use with microsoft/proxy with args

Closed this issue · 2 comments

I want use sigslot with microsoft/proxy,but connect only work when function without arg,for example:

pro::proxy<FDrawable> f = MakeDrawableFromCommand();

sigslot::signal<> sigVoid;
sigslot::signal<float> sigFloat;

sigVoid.connect(&pro::proxy<FDrawable>::invoke<Draw>, &f);                    //work
sigFloat.connect(&pro::proxy<FDrawable>::invoke<DrawFloat>, &f);           //can not compiled

Full code: https://godbolt.org/z/fbvbcdjqo

is it possible make arg funcion work and how to do it?

Hi,
Would that be acceptable to you: https://godbolt.org/z/Mx695aPs4 ?

thanks for the answer and efficient