Resolving a compile issue with 3.1.2
Submitted by Sebastian Wolff
Assigned to Nobody
Link to original bugzilla bug (#535)
Version: 3.1
Operating system: Mac OS
Description
I made some changes to Eigen 3.1.2 because it did not compile in my build environment
Setting:
Mac OS Lion, gcc 4.2.1
Compile options:
g++ -c -pipe -Wall -Wextra -Werror -Wno-long-long -std=c++98 -fopenmp O3 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -W -DAPPLE -DNDEBUG
Changes:
git diff
diff --git a/eigen/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h b/eigen/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h
index 86ec0a6..170ada2 100644
--- a/eigen/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h
+++ b/eigen/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h
@@ -207,7 +207,11 @@ class SparseSelfAdjointTimeDenseProduct
SparseSelfAdjointTimeDenseProduct(const Lhs& lhs, const Rhs& rhs) : Base(lhs,rhs)
{}
- template<typename Dest> void scaleAndAddTo(Dest& dest, Scalar alpha) const
-
template<typename Dest> void scaleAndAddTo(Dest& dest, Scalar
-
#ifndef NDEBUG
-
alpha
-
#endif
-
) const
{
// TODO use alpha
eigen_assert(alpha==Scalar(1) && "alpha != 1 is not implemented yet, sorry");
diff --git a/eigen/eigen/Eigen/src/SparseCore/SparseVector.h b/eigen/eigen/Eigen/src/SparseCore/SparseVector.h
index c952f65..1e156e4 100644
--- a/eigen/eigen/Eigen/src/SparseCore/SparseVector.h
+++ b/eigen/eigen/Eigen/src/SparseCore/SparseVector.h
@@ -202,7 +202,7 @@ class SparseVector
}inline SparseVector(const SparseVector& other)
-
: m_size(0)
-
: SparseBase(other), m_size(0)
*this = other.derived();
}