Skip to content

Commit

Permalink
Avoid unnecessary creation of std::*_error objects when exceptions …
Browse files Browse the repository at this point in the history
…are disabled.
  • Loading branch information
greg7mdp committed Jun 11, 2023
1 parent e3d1138 commit 59dc827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gtl/gtl_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ namespace {
#ifdef GTL_HAVE_EXCEPTIONS
#define GTL_THROW_IMPL(e) throw e
#else
#define GTL_THROW_IMPL(e) std::abort()
#define GTL_THROW_IMPL(...) std::abort()
#endif
} // namespace

Expand Down

0 comments on commit 59dc827

Please sign in to comment.