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,518 of 33,346    |
|    =?ISO-8859-15?Q?Daniel_Kr=FCgler?= to All    |
|    Address identity of functions    |
|    02 Oct 11 05:38:44    |
      From: daniel.kruegler@googlemail.com              Currently the C++ core language imposes the following requirement on function       pointer equality (5.10 [expr.eq] p1):              "Two pointers of the same type compare equal if and only if they are both       null, both point to the same function, or both represent the same address       (3.9.2)."              This wording seems to distinguish (object) addresses from functions and it is       not really clear what implications can be derived from that.              There are some compilers that deduce from this, that the following program is       allowed to output '1' instead of '0':               #include |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca