Re: Offset a void pointer
"Ola Olsson" <[email protected]> Thu, 14 Oct 2004 19:30:56 +1000
| Newsgroups | gmane.games.devel.general |
|---|---|
| Message-ID | <007d01c4b1d0$860decf0$99958690@ALIEN> |
Well, its quite a difference between using different coding styles that are standard conformant and writing code that may not compile on the next platform you want to target... So, thanks for pointing that out, Antoine. And really, you should be using reinterpret_cast ;) cheers .ola ----- Original Message ----- From: "Richard Fabian" <[email protected]> To: <[email protected]> Sent: Thursday, October 14, 2004 7:06 PM Subject: Re: [GD-General] Offset a void pointer > We can carry on forever on this e.g. "you should be using static_cast" > > On Wed, 13 Oct 2004 13:42:53 +0200, Antoine Chavasse > <[email protected]> wrote: > > On Wed, 13 Oct 2004 10:23:16 +0100, Richard Fabian <[email protected]> wrote: > > > > > > > > so really it just boils down to what you're comfortable with, with te > > > caveat that maybe you should be comfortable with using cast to lvalue. > > > > However, afaik using cast as lvalues isn't standard. > > It's deprecated now in gcc. > > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Gamedevlists-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=557