Re: [GD-General] Offset a void pointer
Brought to you by:
vexxed72
From: Ola O. <ola...@gm...> - 2004-10-14 09:31:16
|
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" <ra...@gm...> To: <gam...@li...> 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 > <a.c...@gm...> wrote: > > On Wed, 13 Oct 2004 10:23:16 +0100, Richard Fabian <ra...@gm...> 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. > > |