Skip to content

Commit

Permalink
remove unnecessary creation of std *_error objects
Browse files Browse the repository at this point in the history
remove creation and then casting to (void) of std::*_error objects if exceptions are disabled
  • Loading branch information
ilobilo committed Jun 11, 2023
1 parent 714d70b commit b54ef01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parallel_hashmap/phmap_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b54ef01

Please sign in to comment.