Mail Archives: djgpp/1998/06/05/09:30:24
gsm77 AT aol DOT com (GSM77) writes:
> Sorry, but i'm French ...
Don't apologise :)
> I got this warning :
>
> "initialization of non-const reference `struct X &' from rvalue 'X'
> in passing argument 2 of `operator >>(istream &, X &)'"
>
> The program is like this :
> =============================
>...
>
> istream &
> operator >> ( istream & f, Y & b)
> {
> f >> static_cast <X> (b); /* It's on this line... */
^^^^^^^^^^^
What is "static_cast"? Is it standard, because I don't know it?
--
Ian Miller, Dorset, UK
The views expressed above are entirely those of the writer and do not represent
the views, policy, or understanding of any other person or official body.
- Raw text -