Browse Source

changed std::out_of_range for cross plattform independence

Johannes Ruehle 12 years ago
parent
commit
219c342192
1 changed files with 4 additions and 2 deletions
  1. 4 2
      core/vector/VectorT.tcc

+ 4 - 2
core/vector/VectorT.tcc

@@ -265,7 +265,8 @@ template<class ElementType>
 const ElementType& VectorT<ElementType>::operator()(const ptrdiff_t i) const
 {
     if((ptrdiff_t)dataSize<=i||i<0) {
-        std::__throw_out_of_range("VectorT () access out of range");
+        //std::__throw_out_of_range("VectorT () access out of range");
+		std::out_of_range("VectorT () access out of range");
     }
     return constData[i];
 }
@@ -273,7 +274,8 @@ const ElementType& VectorT<ElementType>::operator()(const ptrdiff_t i) const
 template<class ElementType>
 ElementType& VectorT<ElementType>::operator()(const ptrdiff_t i) {
     if((ptrdiff_t)dataSize<=i||i<0) {
-        std::__throw_out_of_range("VectorT () access out of range");
+        //std::__throw_out_of_range("VectorT () access out of range");
+		std::out_of_range("VectorT () access out of range");
     }
     return data[i];
 }