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