pass std::string to std::out_of_range

This commit is contained in:
Dane Springmeyer 2017-02-01 21:54:27 -08:00
parent adcf611fab
commit 7578534dc8

View file

@ -466,7 +466,7 @@ T box2d<T>::operator[] (int index) const
case -1:
return maxy_;
default:
throw std::out_of_range("index out of range, max value is 3, min value is -4 ");
throw std::out_of_range(std::string("index out of range, max value is 3, min value is -4 "));
}
}