Mercurial > octave
changeset 32031:bc681594872a stable
Include needed headers in installed .cc files (bug #63922).
* liboctave/array/Array-oct.cc, libinterp/template-inst/Array.cc: Explicitly
include all headers (forward) declaring the types that are used to instantiate
the Array template in these files.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 18 Apr 2023 15:09:35 +0200 |
parents | 783b69da1b45 |
children | 99c6403da856 1824e0ee4088 |
files | libinterp/template-inst/Array.cc liboctave/array/Array-oct.cc |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/template-inst/Array.cc Sun Apr 16 09:05:11 2023 -0700 +++ b/libinterp/template-inst/Array.cc Tue Apr 18 15:09:35 2023 +0200 @@ -29,6 +29,9 @@ #include "Array-oct.cc" +#include "ov.h" +#include "cdef-fwd.h" + // "Protect" Array<T> instantiations that are exported by liboctinterp from // being implicitly instantiated in compilation units including this file.
--- a/liboctave/array/Array-oct.cc Sun Apr 16 09:05:11 2023 -0700 +++ b/liboctave/array/Array-oct.cc Tue Apr 18 15:09:35 2023 +0200 @@ -32,6 +32,11 @@ // FIXME: Including "Array.h" will have implicitly instantiated // Array<octave_idx_type>. Could that be an issue? +#include <string> +#include "idx-vector.h" +#include "oct-cmplx.h" +#include "oct-inttypes-fwd.h" + // "Protect" Array<T> instantiations that are exported by liboctave from // being implicitly instantiated in compilation units including this file.