diff --git a/src/Math/Dual.h b/src/Math/Dual.h index 45cc4f344..094c22805 100644 --- a/src/Math/Dual.h +++ b/src/Math/Dual.h @@ -125,7 +125,7 @@ template class Dual { * \hat a \hat b = a_0 b_0 + \epsilon (a_0 b_\epsilon + a_\epsilon b_0) * @f] */ - inline Dual operator*(const Dual& other) const { + template inline Dual operator*(const Dual& other) const { return {_real*other._real, _real*other._dual + _dual*other._real}; } @@ -174,7 +174,7 @@ template class Dual { inline Type operator-(const Dual>& other) const { \ return Dual>::operator-(other); \ } \ - inline Type operator*(const Dual>& other) const { \ + template inline Type operator*(const Dual& other) const { \ return Dual>::operator*(other); \ } \ template inline Type operator/(const Dual& other) const { \