fix the is "inaccessible" issue with g++-4.0.1

This commit is contained in:
Paolo Cignoni 2008-10-29 11:28:51 +00:00
parent e587581275
commit 696f763c3d
4 changed files with 7 additions and 10 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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;