diff liboctave/util/oct-inttypes.h @ 30435:1f0a2689cab2 stable

Use forward declarations for octave_int<T> where possible (bug #59820). * liboctave/util/oct-inttypes-fwd.h: Forward declare template with correct visibility settings. * liboctave/array/idx-vector.h: Include header with complete declaration. * liboctave/util/oct-inttypes.h, libinterp/corefcn/mx-type-traits.h, libinterp/octave-value/ov-base-scalar.cc, libinterp/octave-value/ov-bool.cc, libinterp/octave-value/ov-float.cc, libinterp/octave-value/ov-magic-int.cc, libinterp/octave-value/ov-magic-int.h, libinterp/octave-value/ov-scalar.cc, liboctave/array/Array-i.cc, liboctave/array/MArray-i.cc, liboctave/numeric/sparse-dmsolve.cc, liboctave/operators/mx-inlines.cc: Include header with forward declaration.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 05 Dec 2021 11:23:41 +0100
parents f3f3e3793fb5
children bd67d0045e21
line wrap: on
line diff
--- a/liboctave/util/oct-inttypes.h	Sun Dec 05 10:52:55 2021 +0100
+++ b/liboctave/util/oct-inttypes.h	Sun Dec 05 11:23:41 2021 +0100
@@ -36,18 +36,7 @@
 
 #include "lo-mappers.h"
 #include "lo-traits.h"
-
-template <typename T> class octave_int;
-
-typedef octave_int<int8_t> octave_int8;
-typedef octave_int<int16_t> octave_int16;
-typedef octave_int<int32_t> octave_int32;
-typedef octave_int<int64_t> octave_int64;
-
-typedef octave_int<uint8_t> octave_uint8;
-typedef octave_int<uint16_t> octave_uint16;
-typedef octave_int<uint32_t> octave_uint32;
-typedef octave_int<uint64_t> octave_uint64;
+#include "oct-inttypes-fwd.h"
 
 #if defined (OCTAVE_INT_USE_LONG_DOUBLE)
 
@@ -1351,5 +1340,4 @@
 
 #undef OCTAVE_INT_IDX_TYPE_BIN_OP
 
-
 #endif