Mercurial > octave
view libinterp/template-inst/module.mk @ 31396:7e60506a5428
Prevent implicit instantiations of the Array class template (bug #61711).
* liboctave/array/Array-base.cc: Rename from liboctave/array/Array.cc.
* liboctave/array/Array-C.cc, liboctave/array/Array-b.cc,
liboctave/array/Array-ch.cc, liboctave/array/Array-d.cc,
liboctave/array/Array-f.cc, liboctave/array/Array-fC.cc,
liboctave/array/Array-i.cc, liboctave/array/Array-idx-vec.cc,
liboctave/array/Array-s.cc, liboctave/array/Array-str.cc,
liboctave/array/Array-voidp.cc: Include renamed file.
* liboctave/array/Array-oct.cc: Add new file that includes "Array-base.cc" and
contains extern template declarations for Array<T> classes that are exported by
liboctave.
* libinterp/template-inst/Array-tc.cc: Include "Array-oct.cc". Remove extern
template declarations that are no longer needed.
* libinterp/template-inst/Array.cc: Add new file that includes "Array-oct.cc"
and contains extern template declarations for Array<T> classes that are exported
by liboctinterp.
* liboctave/array/module.mk: Use renamed file and add new file to list of
installed template files.
* libinterp/template-inst/module.mk: Add new file to build system.
* libinterp/module.mk: Install new template file.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 05 Nov 2022 13:48:24 +0100 |
parents | f254c302bb9c |
children |
line wrap: on
line source
TEMPLATE_INST_SRC = \ %reldir%/Array-tc.cc TEMPLATE_INST_INC = \ %reldir%/Array.cc