Add unittesting plugins to scalar_product_op and scalar_quotient_op to help chaking that types are properly propagated.

This commit is contained in:
Gael Guennebaud
2016-06-14 11:31:27 +02:00
parent f57fd78e30
commit bcc0f38f98
2 changed files with 13 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
static bool g_called;
#define EIGEN_SPECIAL_SCALAR_MULTIPLE_PLUGIN { g_called = true; }
#define EIGEN_SCALAR_BINARY_OP_PLUGIN { g_called |= (!internal::is_same<LhsScalar,RhsScalar>::value); }
#include "main.h"