use with microsoft/proxy with args
Closed this issue · 2 comments
lty123456 commented
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?
palacaze commented
Hi,
Would that be acceptable to you: https://godbolt.org/z/Mx695aPs4 ?
lty123456 commented
thanks for the answer and efficient