Mercurial > octave
diff liboctave/MArray-i.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-i.cc Thu Oct 20 12:54:40 2011 +0100 +++ b/liboctave/MArray-i.cc Thu Oct 20 12:54:46 2011 +0100 @@ -34,6 +34,13 @@ template class OCTAVE_API MArray<int>; template class OCTAVE_API MArray<long>; +// Explicit instantiation, as this seems to be required by weird compilers +// like MSVC. This should be harmless on other compilers. +template int xmin<int> (int, int); +template int xmax<int> (int, int); +template long xmin<long> (long, long); +template long xmax<long> (long, long); + INSTANTIATE_MARRAY_FRIENDS (int, OCTAVE_API) INSTANTIATE_MARRAY_FRIENDS (long, OCTAVE_API)