aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-06-13 16:17:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-06-13 16:17:23 +0200
commit7a9ef7bbb4d71e9ea5150a244238e62d350a8896 (patch)
treec7d83a9bf30e24c18c3e9706c48017679005433a /Eigen/src/Core
parent2ca2ffb65e10af6310382bd6efb294efb4f74588 (diff)
Add default template parameters for the second scalar type of binary functors.
This enhences backward compatibility.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r--Eigen/src/Core/util/ForwardDeclarations.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Eigen/src/Core/util/ForwardDeclarations.h b/Eigen/src/Core/util/ForwardDeclarations.h
index 760d6bcf6..af3dce21b 100644
--- a/Eigen/src/Core/util/ForwardDeclarations.h
+++ b/Eigen/src/Core/util/ForwardDeclarations.h
@@ -176,11 +176,11 @@ namespace internal {
// with optional conjugation of the arguments.
template<typename LhsScalar, typename RhsScalar, bool ConjLhs=false, bool ConjRhs=false> struct conj_helper;
-template<typename LhsScalar,typename RhsScalar> struct scalar_sum_op;
-template<typename LhsScalar,typename RhsScalar> struct scalar_difference_op;
-template<typename LhsScalar,typename RhsScalar> struct scalar_conj_product_op;
-template<typename LhsScalar,typename RhsScalar> struct scalar_min_op;
-template<typename LhsScalar,typename RhsScalar> struct scalar_max_op;
+template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_sum_op;
+template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_difference_op;
+template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_conj_product_op;
+template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_min_op;
+template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_max_op;
template<typename Scalar> struct scalar_opposite_op;
template<typename Scalar> struct scalar_conjugate_op;
template<typename Scalar> struct scalar_real_op;