Explorar el Código

fixed throw std errors for cross compiling compatibility

Johannes R hace 12 años
padre
commit
8ac70890b2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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];
 }