pass std::string to std::out_of_range
This commit is contained in:
parent
adcf611fab
commit
7578534dc8
1 changed files with 1 additions and 1 deletions
|
@ -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 "));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue