mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
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:
Vendored
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user