Mercurial > hg > octave-nkf
diff liboctave/MArray-s.cc @ 13732:f8bef53122c8
[MSVC] Explicit instantiation to avoid undefined references.
* MArray-i.cc (xmin<int>, xmax<int>): Explicit instantiation.
(xmin<long>, xmax<long>): Likewise.
* MArray-s.cc (xmin<short>, xmax<short>): Likewise.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 20 Oct 2011 12:54:46 +0100 |
parents | fd0a3ac60b0e |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/liboctave/MArray-s.cc +++ b/liboctave/MArray-s.cc @@ -31,6 +31,11 @@ template class OCTAVE_API MArray<short>; +// Explicit instantiation, as this seems to be required by weird compilers +// like MSVC. This should be harmless on other compilers. +template short xmin<short> (short, short); +template short xmax<short> (short, short); + INSTANTIATE_MARRAY_FRIENDS (short, OCTAVE_API) #include "MDiagArray2.h"