Skip to content

Commit

Permalink
util/backtrace: Mark noexcept if func() doesn't throw
Browse files Browse the repository at this point in the history
Message-Id: <1475246385-22799-1-git-send-email-tgrabiec@scylladb.com>
  • Loading branch information
tgrabiec authored and avikivity committed Oct 1, 2016
1 parent 9e1d5db commit b752610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/backtrace.hh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

// Invokes func for each frame passing return address as argument.
template<typename Func>
void backtrace(Func&& func) noexcept {
void backtrace(Func&& func) noexcept(noexcept(func(0))) {
unw_context_t context;
if (unw_getcontext(&context) < 0) {
return;
Expand Down

0 comments on commit b752610

Please sign in to comment.