Commit c39b95ea authored by Nestor Demeure's avatar Nestor Demeure
Browse files

Made explicit cast to arithmetic type const

parent dee3caea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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; }