fix the is "inaccessible" issue with g++-4.0.1
This commit is contained in:
parent
e587581275
commit
696f763c3d
|
@ -27,7 +27,7 @@ enum {Dimension = SizeAtCompileTime};
|
|||
typedef typename ei_to_vcgtype<Matrix>::type EquivVcgType;
|
||||
typedef vcg::VoidType ParamType;
|
||||
typedef Matrix PointType;
|
||||
// using Base::V;
|
||||
using Base::V;
|
||||
|
||||
// automatic conversion to similar vcg types
|
||||
// the otherway round is implicit because they inherits this Matrix tyoe
|
||||
|
@ -78,9 +78,6 @@ inline Scalar& W() { return data()[SizeAtCompileTime-1]; }
|
|||
/** note, W always returns the last entry */
|
||||
inline const Scalar& W() const { return data()[SizeAtCompileTime-1]; }
|
||||
|
||||
EIGEN_DEPRECATED inline Scalar V(int i) const { return (*this)[i]; };
|
||||
EIGEN_DEPRECATED inline Scalar& V(int i) { return (*this)[i]; };
|
||||
|
||||
/** \deprecated use .data() */
|
||||
EIGEN_DEPRECATED Scalar* V() { return data(); }
|
||||
/** \deprecated use .data() */
|
||||
|
@ -93,6 +90,8 @@ EIGEN_DEPRECATED inline const Scalar& V( const int i ) const
|
|||
assert(i>=0 && i<SizeAtCompileTime);
|
||||
return data()[i];
|
||||
}
|
||||
// // redefined because gcc 4.0.1 does not handle using Base::V
|
||||
// EIGEN_DEPRECATED inline Scalar& V(int i) { return (*this)[i]; };
|
||||
|
||||
//--------------------------------------------------------------------------------
|
||||
// SPACE
|
||||
|
|
|
@ -63,14 +63,13 @@ public:
|
|||
//----------------------------------------
|
||||
private:
|
||||
typedef Eigen::Matrix<_Scalar,2,1> _Base;
|
||||
public:
|
||||
using _Base::coeff;
|
||||
using _Base::coeffRef;
|
||||
using _Base::setZero;
|
||||
using _Base::data;
|
||||
using _Base::V;
|
||||
|
||||
public:
|
||||
|
||||
_EIGEN_GENERIC_PUBLIC_INTERFACE(Point2,_Base);
|
||||
VCG_EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Point2)
|
||||
|
||||
|
|
|
@ -77,8 +77,9 @@ public:
|
|||
//----------------------------------------
|
||||
private:
|
||||
typedef Eigen::Matrix<_Scalar,3,1> _Base;
|
||||
using _Base::Construct;
|
||||
public:
|
||||
|
||||
using _Base::Construct;
|
||||
_EIGEN_GENERIC_PUBLIC_INTERFACE(Point3,_Base);
|
||||
VCG_EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Point3)
|
||||
|
||||
|
|
|
@ -63,13 +63,11 @@ public:
|
|||
//----------------------------------------
|
||||
private:
|
||||
typedef Eigen::Matrix<T,4,1> _Base;
|
||||
public:
|
||||
using _Base::coeff;
|
||||
using _Base::coeffRef;
|
||||
using _Base::setZero;
|
||||
using _Base::data;
|
||||
using _Base::V;
|
||||
|
||||
public:
|
||||
|
||||
_EIGEN_GENERIC_PUBLIC_INTERFACE(Point4,_Base);
|
||||
typedef Scalar ScalarType;
|
||||
|
|
Loading…
Reference in New Issue