summaryrefslogtreecommitdiff
path: root/graphics/nurbs++/files/patch-cvector.h
blob: 6f51f0f59099a388ca8f70d4dc642d32c8cd193a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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 ;