From 3295880120809400471
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,96338d4011313e8b,start
X-Google-Attributes: gidf78e5,public
From: clamage@Eng.Sun.COM (Steve Clamage)
Subject: Re: can 0 be used as sentinel value for pointe
Date: 1995/11/17
Message-ID: <48gltk$i43@engnews1.eng.sun.com>#1/1
X-Deja-AN: 119502788
references: <48f63m$lhe@etca.etca.fr>
organization: Sun Microsystems Inc.
reply-to: clamage@Eng.Sun.COM
newsgroups: comp.std.c++


In article lhe@etca.etca.fr, chris@etca.fr (Christian Millour) writes:
>
>Can 0 be used as sentinel/null value for pointer-to-member data 
>or functions, the way it is used for ordinary pointers ?

Yes.

A constant integral zero serves as a null pointer-to-member just as it
serves as a null data pointer or function pointer.

---
Steve Clamage, stephen.clamage@eng.sun.com



---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]



