remove unnecessary creation of std *_error objects

remove creation and then casting to (void) of std::*_error objects if exceptions are disabled
This commit is contained in:
ilobilo
2023-06-11 21:11:32 +04:00
parent 714d70b6ca
commit b54ef015de
+1 -1
View File
@@ -626,7 +626,7 @@ namespace {
#ifdef PHMAP_HAVE_EXCEPTIONS
#define PHMAP_THROW_IMPL(e) throw e
#else
#define PHMAP_THROW_IMPL(e) do { (void)(e); std::abort(); } while(0)
#define PHMAP_THROW_IMPL(...) std::abort()
#endif
} // namespace