comparison 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
comparison
equal deleted inserted replaced
13731:3b52038e6e6c 13732:f8bef53122c8
29 #include "MArray.h" 29 #include "MArray.h"
30 #include "MArray.cc" 30 #include "MArray.cc"
31 31
32 template class OCTAVE_API MArray<short>; 32 template class OCTAVE_API MArray<short>;
33 33
34 // Explicit instantiation, as this seems to be required by weird compilers
35 // like MSVC. This should be harmless on other compilers.
36 template short xmin<short> (short, short);
37 template short xmax<short> (short, short);
38
34 INSTANTIATE_MARRAY_FRIENDS (short, OCTAVE_API) 39 INSTANTIATE_MARRAY_FRIENDS (short, OCTAVE_API)
35 40
36 #include "MDiagArray2.h" 41 #include "MDiagArray2.h"
37 #include "MDiagArray2.cc" 42 #include "MDiagArray2.cc"
38 43