Avoid dependence on stdexcept by throwing a string here, for an internal error that is not supposed ever to be thrown or caught
This commit is contained in:
@@ -96,7 +96,7 @@ T *allocate(size_t count)
|
|||||||
if (rv) {
|
if (rv) {
|
||||||
#ifndef NO_EXCEPTIONS
|
#ifndef NO_EXCEPTIONS
|
||||||
if (rv == EINVAL) {
|
if (rv == EINVAL) {
|
||||||
throw std::logic_error("Internal error: invalid alignment");
|
throw "Internal error: invalid alignment";
|
||||||
} else {
|
} else {
|
||||||
throw std::bad_alloc();
|
throw std::bad_alloc();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user