diff liboctave/oct-inttypes.h @ 7177:57d2546ad8d5

[project @ 2007-11-14 22:21:35 by jwe]
author jwe
date Wed, 14 Nov 2007 22:21:36 +0000
parents a1dbe9d80eee
children 4555c116b420
line wrap: on
line diff
--- a/liboctave/oct-inttypes.h
+++ b/liboctave/oct-inttypes.h
@@ -250,6 +250,8 @@
       OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0;
   }
 
+  operator T (void) const { return value (); }
+
   operator bool (void) const { return static_cast<bool> (value ()); }
 
   operator char (void) const { return static_cast<char> (value ()); }