Loading duals/dual +1 −1 Original line number Diff line number Diff line Loading @@ -506,7 +506,7 @@ public: /// Explicit cast to an arithmetic type retains the rpart() template <class X, CPPDUALS_ENABLE_IF(std::is_arithmetic<X>::value && !is_dual<X>::value)> explicit operator X () { return X(_real); } explicit operator X() const { return X(_real); } /// Get the real part. T rpart() const { return _real; } Loading Loading
duals/dual +1 −1 Original line number Diff line number Diff line Loading @@ -506,7 +506,7 @@ public: /// Explicit cast to an arithmetic type retains the rpart() template <class X, CPPDUALS_ENABLE_IF(std::is_arithmetic<X>::value && !is_dual<X>::value)> explicit operator X () { return X(_real); } explicit operator X() const { return X(_real); } /// Get the real part. T rpart() const { return _real; } Loading