Avoid including <sstream> with EIGEN_NO_IO

(cherry picked from commit b7668c0371)
This commit is contained in:
Alexander Richardson
2022-07-29 18:02:51 +00:00
committed by Antonio Sanchez
parent 6aaa45db5f
commit a5469a6f0f
6 changed files with 12 additions and 6 deletions

View File

@@ -214,7 +214,7 @@ template<typename Derived> class SparseMatrixBase
inline void assignGeneric(const OtherDerived& other);
public:
#ifndef EIGEN_NO_IO
friend std::ostream & operator << (std::ostream & s, const SparseMatrixBase& m)
{
typedef typename Derived::Nested Nested;
@@ -263,6 +263,7 @@ template<typename Derived> class SparseMatrixBase
}
return s;
}
#endif
template<typename OtherDerived>
Derived& operator+=(const SparseMatrixBase<OtherDerived>& other);