diff liboctave/oct-inttypes.h @ 5898:da843f35775c

[project @ 2006-07-19 18:18:08 by jwe]
author jwe
date Wed, 19 Jul 2006 18:18:31 +0000
parents 22e23bee74c8
children c20eb7330d13
line wrap: on
line diff
--- a/liboctave/oct-inttypes.h
+++ b/liboctave/oct-inttypes.h
@@ -247,6 +247,8 @@
       OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0;
   }
 
+  operator bool (void) const { return static_cast<bool> (value ()); }
+
   operator char (void) const { return static_cast<char> (value ()); }
 
   operator double (void) const { return static_cast<double> (value ()); }