Ver código fonte

changed std throw out of bounce

Johannes R 12 anos atrás
pai
commit
3f4a9b1709

+ 1 - 1
core/vector/CheckedMatrixT.h

@@ -89,7 +89,7 @@ public:
   operator()(const ptrdiff_t i, const ptrdiff_t j) {
     if (i < 0 || static_cast<unsigned int>(i) >= this->rows()
         || j < 0 || static_cast<unsigned int>(j) >= this->cols()) {
-        std::__throw_out_of_range("MatrixT () access out of range"); 
+        std::out_of_range("MatrixT () access out of range"); 
     }
     return MatrixT<ElementType>::operator()(i, j);
   }

+ 1 - 1
core/vector/CheckedRowMatrixT.h

@@ -70,7 +70,7 @@ public:
   operator()(const ptrdiff_t i, const ptrdiff_t j) {
     if (i < 0 || static_cast<unsigned int>(i) >= this->rows()
         || j < 0 || static_cast<unsigned int>(j) >= this->cols()) {
-        std::__throw_out_of_range("RowMatrixT () access out of range"); 
+        std::out_of_range("RowMatrixT () access out of range"); 
     }
     return RowMatrixT<ElementType>::operator()(i, j);
   }

+ 1 - 1
core/vector/CheckedVectorT.h

@@ -61,7 +61,7 @@ public:
   inline typename VectorT<ElementType>::reference
   operator[](const ptrdiff_t i) {
     if (i < 0 || static_cast<unsigned int>(i) >= this->size()) {
-		std::__throw_out_of_range("VectorT () access out of range"); 
+		std::out_of_range("VectorT () access out of range"); 
     }
     return this->data[i];
   }