diff liboctave/util/oct-inttypes.cc @ 31400:e7fc6251b698

Use more specialized API flags for template classes (bug #61711). * oct-conf-post-public.in.h: Add more specific attributes for exporting (specialized) template class instantiations. * liboctave/array/Array.h (Array<T>): Also dllexport member function definitions (on Windows). * Array-*.cc: Move extern template class declarations to before including "Array-base.cc" to avoid some implicit instantiations. * all files: Use new macros for visibility attributes.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 05 Nov 2022 19:15:13 +0100
parents 014030798d5e
children 9978ef12aea3
line wrap: on
line diff
--- a/liboctave/util/oct-inttypes.cc	Sun Nov 06 12:18:37 2022 +0100
+++ b/liboctave/util/oct-inttypes.cc	Sat Nov 05 19:15:13 2022 +0100
@@ -819,7 +819,7 @@
 }
 
 #define INSTANTIATE_INTTYPE(T)                                          \
-  template class octave_int<T>;                                         \
+  template class OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API octave_int<T>; \
                                                                         \
   template OCTAVE_API octave_int<T>                                     \
   pow (const octave_int<T>&, const octave_int<T>&);                     \