Stephan, hi!
Unless I want to add something. Unfortunately I can't always take
wrap()s output but have to modify a little. In fact, my Queue needs to
be templatized as well, modifying the behaviour of the functor. I have
a template parameter "Calling". When it is true, another function
shall be called by the functor after the method was posted. Now I
wanted to do this by phoenix:
template <bool Calling>
class Queue {
template<typename Handler>};
void post(Handler n_handler) {
m_iosrv.post(n_handler);
...
template<typename SlotSignature, typename SlotFunction>
boost::signals2::connection
connect(boost::signals2::signal<SlotSignature> &n_signal, SlotFunction
n_method) {if_( CallingBack ) [
return n_signal.connect(
post(n_method) , m_signal_callback()
] .else_ [
m_iosrv.wrap( n_method )
] );
};
...