diff liboctave/array/Sparse.h @ 29279:e4c152e827aa

Visibility: Forward declare template classes with visibility attributes (patch #8919). * Array.h, MArray.h, Sparse.h: Forward declare template classes with visibility attributes before template class definition. * Array-i.cc: Instantiate Array<T> template class with more integer types.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 07 Jan 2021 18:34:18 +0100
parents a009cb8ef68f
children 7854d5752dd2
line wrap: on
line diff
--- a/liboctave/array/Sparse.h	Thu Jan 07 11:11:39 2021 -0800
+++ b/liboctave/array/Sparse.h	Thu Jan 07 18:34:18 2021 +0100
@@ -43,6 +43,9 @@
 // Two dimensional sparse class.  Handles the reference counting for
 // all the derived classes.
 
+// forward declare template with visibility attribute
+template <typename T> class OCTAVE_API Sparse;
+
 template <typename T>
 class
 Sparse