|
Boost Users : |
Subject: Re: [Boost-users] [Statechart] Passing referencetocreate_processor()
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-04-23 15:49:41
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net