Mercurial > hg > octave-nkf
diff liboctave/oct-group.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-group.h +++ b/liboctave/oct-group.h @@ -69,9 +69,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_group getgrent (void); static octave_group getgrent (string& msg);