Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 32,799 of 33,346    |
|    Pete Becker to news    |
|    Re: address arithmetic in good style    |
|    16 Jan 13 06:18:50    |
      From: pete@versatilecoding.com              On 2013-01-15 14:04:50 +0000, news said:              > I avoid C's habit of multiplying all my offsets by the size of       > the thing allegedly pointed to because sizeof(void) is 1       >       > Yesterday my C++ compiler complained about using void* in this way.       > Apparently it is no longer legitimate to do address arithmetic on a       > pointer to void.              It has never been legitimate. GNU does it as an extension.              --        Pete                      [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca