Kaynağa Gözat

fixed throw std errors for cross compiling compatibility

Johannes R 12 yıl önce
ebeveyn
işleme
8ac70890b2
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      core/vector/VectorT.tcc

+ 2 - 2
core/vector/VectorT.tcc

@@ -266,7 +266,7 @@ 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::out_of_range("VectorT () access out of range");
+		throw std::out_of_range("VectorT () access out of range");
     }
     return constData[i];
 }
@@ -275,7 +275,7 @@ 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::out_of_range("VectorT () access out of range");
+		throw std::out_of_range("VectorT () access out of range");
     }
     return data[i];
 }