
On 10-07-05 2:33 PM, Edd Dawson wrote:
Actually, I don't strictly *need* such a facility, but it would my little library a bit nicer to use e.g.
connect(slider, SIGNAL(valueChanged(int)), bind(&on_slide, ref(value), _1))); vs. connectx<void (int)>(slider, SIGNAL(valueChanged(int)), bind(&on_slide, ref(value), _1));
(it's for connecting Qt signals to functions/functors without going through the extra bother of the moc step at build time).
A comment in this post on my blog has a good generic solution: http://uint32t.blogspot.com/2008/11/using-boost-bind-and-boost-function.html The only issue with it as far as I can see is that it requires exact type matches. Would love to see you take that further :) It essentially mimics what moc would generate. Sohail Signature file gone again.