|
@@ -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];
|
|
|
}
|