diff liboctave/array/Array-idx-vec.cc @ 21574:ae4d7dfea337

maint: merge stable to default.
author John W. Eaton <jwe@octave.org>
date Fri, 01 Apr 2016 12:57:49 -0400
parents 40de9f8f23a6 f3f8e1d3e399
children aba2e6293dd8
line wrap: on
line diff
--- a/liboctave/array/Array-idx-vec.cc	Thu Mar 31 14:12:13 2016 -0700
+++ b/liboctave/array/Array-idx-vec.cc	Fri Apr 01 12:57:49 2016 -0400
@@ -31,6 +31,11 @@
 #include "Array.h"
 #include "Array.cc"
 
+// Prevent implicit instantiations on some systems (Windows, others?)
+// that can lead to duplicate definitions of static data members.
+
+extern template class OCTAVE_API Array<octave_idx_type>;
+
 NO_INSTANTIATE_ARRAY_SORT (idx_vector);
 
 INSTANTIATE_ARRAY (idx_vector, OCTAVE_API);