[C++-sig] Just about to release
Stefan Seefeld
seefeld at sympatico.ca
Wed Oct 9 22:01:06 CEST 2002
David Abrahams wrote:
>>And what about 'str' ?
>
>
> str is fine.
>
>
>>How is the link to 'operator <<' established ?
>
>
> In the same way that "self + self" establishes a link to
> operator+(Rational,Rational) (or whatever the signature ends up
> being).
ah, expression templates...
>>Something is missing here...
>
>
> What is it?
well, probably just my insight :-)
While 'pow' is declared a few lines above, 'str'
isn't. So I guess it's declared elsewhere as a template
that delegates to 'operator <<', which would provide
the missing link...
Stefan
More information about the Cplusplus-sig
mailing list