diff --git a/codemp/Ratl/bits_vs.h b/codemp/Ratl/bits_vs.h index d0bde48..aea5d63 100644 --- a/codemp/Ratl/bits_vs.h +++ b/codemp/Ratl/bits_vs.h @@ -41,9 +41,9 @@ class bits_vs : public bits_base //////////////////////////////////////////////////////////////////////////////////// void clear_trailing_bits() { - for (int i=SIZE; iARRAY_SIZE*this->BITS_INT_SIZE; i++) { - mV[i>>BITS_SHIFT] &= ~(1<<(i&BITS_AND)); + this->mV[i>>this->BITS_SHIFT] &= ~(1<<(i&this->BITS_AND)); } } @@ -68,7 +68,7 @@ public: //////////////////////////////////////////////////////////////////////////////////// bits_vs(const bits_vs &B) { - mem::cpy(mV, B.mV,BYTE_SIZE); + mem::cpy(this->mV, B.mV,this->BYTE_SIZE); } //////////////////////////////////////////////////////////////////////////////////// @@ -76,7 +76,7 @@ public: //////////////////////////////////////////////////////////////////////////////////// bits_vs(const char* Str) { - clear(); + this->clear(); for (int b=0; bset_bit(b); // Found A True Bit } } } @@ -96,9 +96,9 @@ public: //////////////////////////////////////////////////////////////////////////////////////// bool empty() const { - for (int i=0; iARRAY_SIZE; i++) { - if (mV[i]) + if (this->mV[i]) { return false; } @@ -119,9 +119,9 @@ public: //////////////////////////////////////////////////////////////////////////////////////// void invert() { - for (int i=0; iARRAY_SIZE; i++) { - mV[i] = ~mV[i]; + this->mV[i] = ~this->mV[i]; } clear_trailing_bits(); } @@ -144,7 +144,7 @@ public: // of bits this object can hold. //-------------------------------------------- assert(i>=0 && i < SIZE); - return ( (mV[i>>BITS_SHIFT] & (1<<(i&BITS_AND)))!=0 ); + return ( (this->mV[i>>this->BITS_SHIFT] & (1<<(i&this->BITS_AND)))!=0 ); } //////////////////////////////////////////////////////////////////////////////////////// @@ -160,7 +160,7 @@ public: //////////////////////////////////////////////////////////////////////////////////////// bool operator==(const bits_vs &B) const { - return (mem::eql(mV, B.mV,BYTE_SIZE)); + return (mem::eql(this->mV, B.mV,this->BYTE_SIZE)); } //////////////////////////////////////////////////////////////////////////////////////// @@ -176,9 +176,9 @@ public: //////////////////////////////////////////////////////////////////////////////////////// void operator|=(const bits_vs &B) { - for (int i=0; iARRAY_SIZE; i++) { - mV[i] |= B.mV[i]; + this->mV[i] |= B.mV[i]; } } @@ -187,9 +187,9 @@ public: //////////////////////////////////////////////////////////////////////////////////////// void operator&=(const bits_vs &B) { - for (int i=0; iARRAY_SIZE; i++) { - mV[i] &= B.mV[i]; + this->mV[i] &= B.mV[i]; } } @@ -198,9 +198,9 @@ public: //////////////////////////////////////////////////////////////////////////////////////// void operator^=(const bits_vs &B) { - for (int i=0; iARRAY_SIZE; i++) { - mV[i] ^= B.mV[i]; + this->mV[i] ^= B.mV[i]; } } @@ -209,7 +209,7 @@ public: //////////////////////////////////////////////////////////////////////////////////////// void operator=(const bits_vs &B) { - mem::cpy(mV, B.mV,BYTE_SIZE); + mem::cpy(this->mV, B.mV,this->BYTE_SIZE); } }; diff --git a/codemp/Ratl/ratl_common.h b/codemp/Ratl/ratl_common.h index 50ed81f..e3515e0 100644 --- a/codemp/Ratl/ratl_common.h +++ b/codemp/Ratl/ratl_common.h @@ -1030,7 +1030,7 @@ public: //////////////////////////////////////////////////////////////////////////////////// // Data //////////////////////////////////////////////////////////////////////////////////// - typedef typename T TStorageTraits; + typedef T TStorageTraits; typedef typename T::TArray TTArray; typedef typename T::TValue TTValue; typedef typename T::TConstructed TTConstructed; diff --git a/codemp/Ratl/vector_vs.h b/codemp/Ratl/vector_vs.h index 5c33175..a9d18d3 100644 --- a/codemp/Ratl/vector_vs.h +++ b/codemp/Ratl/vector_vs.h @@ -38,7 +38,7 @@ template class vector_base : public ratl_base { public: - typedef typename T TStorageTraits; + typedef T TStorageTraits; typedef typename T::TValue TTValue; //////////////////////////////////////////////////////////////////////////////////// // Capacity Enum @@ -69,7 +69,7 @@ public: { mArray[i] = B.mArray[i]; } - mSize = val.mSize; + mSize = B.mSize; } ////////////////////////////////////////////////////////////////////////////////////