Re: Why doesn't gcc 4 like this?
Re: Why doesn't gcc 4 like this?
- Subject: Re: Why doesn't gcc 4 like this?
- From: Andrew Pinski <email@hidden>
- Date: Sat, 4 Jun 2005 16:36:55 -0400
On Jun 4, 2005, at 4:55 PM, Tim Conkling wrote:
I guess my question is, why is it not an lvalue? This code produces no
such error:
char* srcRowStart;
...
srcRowStart += framePort->getRowBytes();
The only difference is that I'm not casting srcRowStart from a short*
to a char*.
Casts are always rvalues (right hand side values) and never lvalues.
Thanks,
Andrew Pinski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden