Backed out changeset: 159f9e7014f8

This commit is contained in:
Oliver Duis
2012-05-06 23:04:47 +02:00
parent 1483ecb47c
commit 05226a2875
125 changed files with 747 additions and 750 deletions

View File

@@ -132,7 +132,7 @@ public:
return *this;
}
// use with integer indices
T& operator[](int index) const {
T& operator[](int index) {
if (((unsigned int)index)<size) return data[index];
else
{
@@ -144,7 +144,7 @@ public:
}
// use with float indices
T operator[](float index) const {
T operator[](float index) {
int idx = (int)index; // don't use floor! The difference in negative space is no problems here
if (((unsigned int)idx) > maxs) {
if (idx<0)
@@ -166,7 +166,7 @@ public:
return (p1 + p2*diff);
}
operator bool (void) const
operator bool (void)
{
return size>0;
}