
5 Dec
2006
5 Dec
'06
9:49 p.m.
Memfis wrote:
I have two signals: signal
source; signal target; What want is for every call: source(12345); to have a call: target("the value is 12345");
I am trying to achieve this with format and bind, but without much luck. What I came up with is the following: source.connect(bind(ref(target), bind(&format::str, bind(&format::operator%, format("the value is %1"), _1)));
Your format string throws an exception for me. Perhaps you need to use %1%?