# HG changeset patch # User Michael Goffioul # Date 1275839521 -3600 # Node ID 7b4ffe27bbb40a2903be0ba71bbbf52c7649c883 # Parent 0ba9bd294421311f6d3810ba4ef391739fb8cf16 Specify template arguments explicitely [MSVC]. diff -r 0ba9bd294421 -r 7b4ffe27bbb4 liboctave/ChangeLog --- a/liboctave/ChangeLog Fri Jun 04 15:08:33 2010 +0200 +++ b/liboctave/ChangeLog Sun Jun 06 16:52:01 2010 +0100 @@ -1,3 +1,10 @@ +2010-06-06 Michael Goffioul + + * mx-op-defs.h (MNANCHK): Add matrix element type argument and use it + to specify template argument for mx_inline_any_nan. + (MS_BOOL_OP, SM_BOOL_OP, MM_BOOL_OP, NDS_BOOL_OP, SND_BOOL_OP, + NDND_BOOL_OP): Specify new MNANCHK argument. + 2010-06-04 Jaroslav Hajek * dim-vector.cc: New source. diff -r 0ba9bd294421 -r 7b4ffe27bbb4 liboctave/mx-op-defs.h --- a/liboctave/mx-op-defs.h Fri Jun 04 15:08:33 2010 +0200 +++ b/liboctave/mx-op-defs.h Sun Jun 06 16:52:01 2010 +0100 @@ -33,8 +33,8 @@ if (xisnan (s)) \ gripe_nan_to_logical_conversion () -#define MNANCHK(m) \ - if (do_mx_check (m, mx_inline_any_nan)) \ +#define MNANCHK(m, MT) \ + if (do_mx_check (m, mx_inline_any_nan)) \ gripe_nan_to_logical_conversion () // vector by scalar operations. @@ -116,7 +116,7 @@ boolMatrix \ F (const M& m, const S& s) \ { \ - MNANCHK (m); \ + MNANCHK (m, M::element_type); \ SNANCHK (s); \ return do_ms_binary_op (m, s, OP); \ } @@ -160,7 +160,7 @@ F (const S& s, const M& m) \ { \ SNANCHK (s); \ - MNANCHK (m); \ + MNANCHK (m, M::element_type); \ return do_sm_binary_op (s, m, OP); \ } @@ -202,8 +202,8 @@ boolMatrix \ F (const M1& m1, const M2& m2) \ { \ - MNANCHK (m1); \ - MNANCHK (m2); \ + MNANCHK (m1, M1::element_type); \ + MNANCHK (m2, M2::element_type); \ return do_mm_binary_op (m1, m2, OP, #F); \ } @@ -245,7 +245,7 @@ boolNDArray \ F (const ND& m, const S& s) \ { \ - MNANCHK (m); \ + MNANCHK (m, ND::element_type); \ SNANCHK (s); \ return do_ms_binary_op (m, s, OP); \ } @@ -293,7 +293,7 @@ F (const S& s, const ND& m) \ { \ SNANCHK (s); \ - MNANCHK (m); \ + MNANCHK (m, ND::element_type); \ return do_sm_binary_op (s, m, OP); \ } @@ -339,8 +339,8 @@ boolNDArray \ F (const ND1& m1, const ND2& m2) \ { \ - MNANCHK (m1); \ - MNANCHK (m2); \ + MNANCHK (m1, ND1::element_type); \ + MNANCHK (m2, ND2::element_type); \ return do_mm_binary_op (m1, m2, OP, #F); \ } diff -r 0ba9bd294421 -r 7b4ffe27bbb4 src/ChangeLog --- a/src/ChangeLog Fri Jun 04 15:08:33 2010 +0200 +++ b/src/ChangeLog Sun Jun 06 16:52:01 2010 +0100 @@ -1,3 +1,8 @@ +2010-06-06 Michael Goffioul + + * data.cc (Frem, Fmod): Specify template arguments of binmap + explicitely. + 2010-06-02 Jaroslav Hajek * DLD-FUNCTIONS/strfind.cc (Fqs_replace): Allow overlapped matches. diff -r 0ba9bd294421 -r 7b4ffe27bbb4 src/data.cc --- a/src/data.cc Fri Jun 04 15:08:33 2010 +0200 +++ b/src/data.cc Sun Jun 06 16:52:01 2010 +0100 @@ -541,7 +541,7 @@ { \ X##NDArray a0 = args(0).X##_array_value (); \ X##NDArray a1 = args(1).X##_array_value (); \ - retval = binmap (a0, a1, rem, "rem"); \ + retval = binmap (a0, a1, rem, "rem"); \ } \ break MAKE_INT_BRANCH (int8); @@ -673,7 +673,7 @@ { \ X##NDArray a0 = args(0).X##_array_value (); \ X##NDArray a1 = args(1).X##_array_value (); \ - retval = binmap (a0, a1, mod, "mod"); \ + retval = binmap (a0, a1, mod, "mod"); \ } \ break MAKE_INT_BRANCH (int8);