23 Apr
2009
23 Apr
'09
7:49 p.m.
Andreas Huber:
I must admit I don't currently see why this happens, I'll probably have to produce a minimal repro and ask bind experts for help.
It happens because ultimately you produce a bind expression such as boost::bind( pImpl, this, ..., boost::ref( value ) ) and the ref is interpreted by bind as a reference to 'value'. But your Arg1 remains a reference_wrapper. You'll probably need to convert ArgN parameters that are of the form reference_wrapper<X> to X& before instantiating create_processor_implN.