
4 Jul
2006
4 Jul
'06
5:40 p.m.
klaus triendl wrote:
Peter Dimov wrote:
Lambda sees that you are invoking operator<< on a MySubStream& and deduces the return type to be MySubStream&; it isn't smart enough to see that you're actually using the operator<< definition for the base class MyStream.
I thought that it would be converted implicitly in the end by the compiler..
There is no implicit conversion from MyStream& to MySubStream&.
Can I make it smart enough?
I showed you one way. Another would be to use ret