From c0b011d5c05af46ce1a706ad521a6103c7dc9fb8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 25 Jun 2022 14:58:50 -0700 Subject: [PATCH] ircd::m: Propagate noexcept through closure templates. --- include/ircd/m/query.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ircd/m/query.h b/include/ircd/m/query.h index ff480b97c..288589500 100644 --- a/include/ircd/m/query.h +++ b/include/ircd/m/query.h @@ -36,6 +36,7 @@ ircd::m::query(const event::idx &event_idx, R ret; m::get(event_idx, key, [&ret, &closure] (const string_view &value) + noexcept(std::is_nothrow_invocable()) { ret = closure(value); }); @@ -72,6 +73,7 @@ ircd::m::query(std::nothrow_t, const auto assign { [&ret, &closure](const string_view &value) + noexcept(std::is_nothrow_invocable()) { ret = closure(value); } @@ -103,6 +105,7 @@ ircd::m::query(std::nothrow_t, m::get(std::nothrow, event_idx, key, [&ret, &closure] (const string_view &value) + noexcept(std::is_nothrow_invocable()) { ret = closure(value); });