freebsd-ports/graphics/nurbs++/files/patch-cvector.h
Pav Lucistnik 95465b01db - Unbreak on 5.X and above: fix compile with gcc34
PR:		ports/106117
Submitted by:	Peter Johnson <johnson.peter@gmail.com>
2006-12-01 09:55:32 +00:00

16 lines
646 B
C++

--- matrix/cvector.h.orig Mon May 13 14:07:45 2002
+++ matrix/cvector.h Thu Nov 30 23:30:00 2006
@@ -54,10 +54,10 @@
CVector(const BasicArray<T>& v) : Vector<T>(v), index(0) {;}
virtual ~CVector() {}
- T& operator[](const int i) { return x[i%sze]; }
- T operator[](const int i) const { return x[i%sze]; }
+ T& operator[](const int i) { return this->x[i%this->sze]; }
+ T operator[](const int i) const { return this->x[i%this->sze]; }
- void put(T v) { x[index] = v ; index = (index+1)%sze; }
+ void put(T v) { this->x[index] = v ; index = (index+1)%this->sze; }
protected:
int index ;