
3 Nov
2006
3 Nov
'06
8:47 p.m.
Fernando Cacciola wrote:
Besides the error, that's the general way to go? (when I can only use tuple/bind of course)
Defining the function object directly without going through bind, as suggested by Bryan Ewbank, may be easier. The pseudocode is trivial: struct pipe { tuple tp; operator()( A1 & a1 ) { return tp[0]( pipe( tp[rest] )( a1 ) ); } }; but the actual implementation may be hard. :-)