• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why doesn't gcc 4 like this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Why doesn't gcc 4 like this? (From: Tim Conkling <email@hidden>)
 >Re: Why doesn't gcc 4 like this? (From: Andrew Pinski <email@hidden>)
 >Re: Why doesn't gcc 4 like this? (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: Why doesn't gcc 4 like this?
  • Next by Date: Re: Const qualifier conversion warnings
  • Previous by thread: Re: Why doesn't gcc 4 like this?
  • Next by thread: Nap mode turning off automatically?
  • Index(es):
    • Date
    • Thread