diff src/ov.h @ 8017:260294a5520f

octave_value::idx_type_value: move definition to ov.cc from ov.h
author John W. Eaton <jwe@octave.org>
date Thu, 07 Aug 2008 14:05:11 -0400
parents f336dd8e96d0
children 283989f2da9b
line wrap: on
line diff
--- a/src/ov.h	Thu Aug 07 01:16:50 2008 -0400
+++ b/src/ov.h	Thu Aug 07 14:05:11 2008 -0400
@@ -639,16 +639,7 @@
     { return rep->ulong_value (req_int, frc_str_conv); }
 
   octave_idx_type
-  idx_type_value (bool req_int = false, bool frc_str_conv = false) const
-    {
-#if SIZEOF_OCTAVE_IDX_TYPE == SIZEOF_LONG
-      return long_value (req_int, frc_str_conv);
-#elif SIZEOF_OCTAVE_IDX_TYPE == SIZEOF_INT
-      return int_value (req_int, frc_str_conv);
-#else
-#error "no octave_value extractor for octave_idx_type"
-#endif
-    }
+  idx_type_value (bool req_int = false, bool frc_str_conv = false) const;
 
   double double_value (bool frc_str_conv = false) const
     { return rep->double_value (frc_str_conv); }