*explicit overloads for Eigen_vector::operator=

*include Taucs header if detected in param. test
This commit is contained in:
Sébastien Loriot 2011-12-27 10:08:39 +00:00
parent 6e1df30eff
commit 5de506608d
2 changed files with 5 additions and 5 deletions

View File

@ -42,14 +42,13 @@ public:
// Public operations // Public operations
public: public:
#ifndef CGAL_CFG_MATCHING_BUG_6
using EigenType::operator=;
#else
Eigen_vector<T>& operator=(const Eigen_vector<T>& other){ Eigen_vector<T>& operator=(const Eigen_vector<T>& other){
return static_cast<EigenType&>(*this) = other.eigen_object(); return static_cast<EigenType&>(*this) = other.eigen_object();
} }
#endif
Eigen_vector<T>& operator=(const EigenType& other){
return static_cast<EigenType&>(*this) = other;
}
/// Create a vector initialized with zeros. /// Create a vector initialized with zeros.
Eigen_vector(int dimension) Eigen_vector(int dimension)

View File

@ -33,7 +33,8 @@
#include <CGAL/OpenNL/linear_solver.h> #include <CGAL/OpenNL/linear_solver.h>
#ifdef CGAL_EIGEN3_ENABLED #ifdef CGAL_EIGEN3_ENABLED
#include <CGAL/Eigen_solver_traits.h> #include <CGAL/Eigen_solver_traits.h>
#elif defined(CGAL_USE_TAUCS) #endif
#ifdef CGAL_USE_TAUCS
#include <CGAL/Taucs_solver_traits.h> #include <CGAL/Taucs_solver_traits.h>
#endif #endif