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:
|
case -1:
|
||||||
return maxy_;
|
return maxy_;
|
||||||
default:
|
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…
Add table
Reference in a new issue