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 31,588 of 33,346    |
|    Pete Becker to Mathias Gaunard    |
|    Re: Can an arbitrary continuous sequence    |
|    29 Oct 11 01:17:39    |
      04c7673f       From: pete@versatilecoding.com              On 2011-10-28 16:46:00 +0000, Mathias Gaunard said:              >       > 1) I think static_casting a void* to a different pointer type than the       > one it originally was is undefined behaviour. Therefore you should use       > reinterpret_cast instead, which is only implementation-defined.              Well, maybe, if the implementation documents that it does what you want       it to do. But in the absence of documentation, relying on       reinterpret_cast is just guessing.              --        Pete       Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The       Standard C++ Library Extensions: a Tutorial and Reference       (www.petebecker.com/tr1book)                      [ 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