
5 Jul
2006
5 Jul
'06
1:06 a.m.
Peter Dimov wrote:
klaus triendl wrote:
Peter Dimov wrote: Can I make it smart enough?
I showed you one way. Another would be to use ret<MyStream&> to force a specific return type:
http://www.boost.org/doc/html/lambda/le_in_details.html#lambda.overriding_de...
Thanks for pointing me in the right direction. Extending the return type deduction system is the best way for me: namespace boost { namespace lambda { template<typename T> class plain_return_type_2<bitwise_action<leftshift_action>, MySubStream, T> { public: typedef MyStream& type; }; } } -- Klaus Triendl