From 26c7635c9e917092d8a1cb095048c0b4414717fb Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Thu, 29 Nov 2018 10:34:43 +0000 Subject: [PATCH] Avoid dependence on stdexcept by throwing a string here, for an internal error that is not supposed ever to be thrown or caught --- src/system/Allocators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/Allocators.h b/src/system/Allocators.h index def7b07..83582e8 100644 --- a/src/system/Allocators.h +++ b/src/system/Allocators.h @@ -96,7 +96,7 @@ T *allocate(size_t count) if (rv) { #ifndef NO_EXCEPTIONS if (rv == EINVAL) { - throw std::logic_error("Internal error: invalid alignment"); + throw "Internal error: invalid alignment"; } else { throw std::bad_alloc(); }