Mercurial > hg > octave-lyh
diff liboctave/oct-passwd.h @ 3145:0d640dc625c7
[project @ 1998-02-05 08:44:59 by jwe]
author | jwe |
---|---|
date | Thu, 05 Feb 1998 08:45:07 +0000 |
parents | 9d26524e2869 |
children | 5eef8a2294bd |
line wrap: on
line diff
--- a/liboctave/oct-passwd.h +++ b/liboctave/oct-passwd.h @@ -80,9 +80,7 @@ bool ok (void) const { return valid; } - operator void* () const - { return ok () - ? static_cast<void *> (-1) : static_cast<void *> (0); } + operator bool () const { return ok (); } static octave_passwd getpwent (void); static octave_passwd getpwent (string& msg);