home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!ark
- From: ark@alice.att.com (Andrew Koenig)
- Newsgroups: comp.lang.c++
- Subject: Re: What is this CFRONT 3.0 warning message trying to tell me?
- Message-ID: <24450@alice.att.com>
- Date: 19 Dec 92 16:00:36 GMT
- Article-I.D.: alice.24450
- References: <1992Dec15.183649.20994@delfin.com> <BzBzL2.5rx@apollo.hp.com> <1992Dec17.184841.4563@cadkey.com>
- Reply-To: ark@alice.UUCP ()
- Organization: AT&T Bell Laboratories, Murray Hill NJ
- Lines: 13
-
- In article <1992Dec17.184841.4563@cadkey.com> erics@cadkey.com (Eric Smith) writes:
-
- > Isn't there a problem with this code, since it checks to see if this
- > is the same as the right hand side by pointer comparison? Aren't
- > pointer comparisons only defined if they point within the same object
- > or array of objects?
-
- Pointer comparisons for equality and inequality work even if the pointers
- don't point within the same objects. The other four relationals are
- more constrained.
- --
- --Andrew Koenig
- ark@europa.att.com
-