diff libinterp/interpfcn/variables.h @ 15215:9020dddc925a

use std::numeric_limits for integer max and min values * strfind.cc, gl-render.cc, jit-typeinfo.cc, oct-stream.cc, sparse-xpow.cc, xpow.cc, debug.cc, file-io.cc, ls-oct-ascii.cc, oct-hist.cc, pr-output.cc, utils.cc, variables.h, ov-base-int.cc, ov-base.cc, ov-bool-sparse.cc, ov-cx-sparse.cc, ov-float.cc, ov-flt-re-mat.cc, ov-int16.cc, ov-int32.cc, ov-int64.cc, ov-int8.cc, ov-re-mat.cc, ov-re-sparse.cc, ov-scalar.cc, ov-struct.cc, ov-uint16.cc, ov-uint32.cc, ov-uint64.cc, ov-uint8.cc, Array.cc, Sparse.cc, chNDArray.cc, dNDArray.cc, data-conv.cc, data-conv.h, fNDArray.cc, kpse.cc, oct-inttypes.h, oct-time.cc: Use std::numeric_limits for max and min integer values. Include <limits>, not <climits>.
author John W. Eaton <jwe@octave.org>
date Wed, 22 Aug 2012 17:36:54 -0400
parents 336f42406671
children 66e17621f99a
line wrap: on
line diff
--- a/libinterp/interpfcn/variables.h	Wed Aug 22 13:46:29 2012 -0700
+++ b/libinterp/interpfcn/variables.h	Wed Aug 22 17:36:54 2012 -0400
@@ -32,11 +32,13 @@
 class octave_builtin;
 class string_vector;
 
-#include <climits>
 #include <cfloat>
 
+#include <limits>
 #include <string>
 
+#include "lo-ieee.h"
+
 #include "ov.h"
 #include "ov-builtin.h"
 #include "symtab.h"
@@ -97,7 +99,8 @@
 extern OCTINTERP_API octave_value
 set_internal_variable (int& var, const octave_value_list& args,
                        int nargout, const char *nm,
-                       int minval = INT_MIN, int maxval = INT_MAX);
+                       int minval = std::numeric_limits<int>::min (),
+                       int maxval = std::numeric_limits<int>::max ());
 
 extern OCTINTERP_API octave_value
 set_internal_variable (double& var, const octave_value_list& args,