From 153354c63f45440b41d4e8e34f4fbbc238b962b1 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 4 Aug 2020 18:53:18 -0700 Subject: [PATCH] ircd::json::tuple: Indicate various closures are noexcept. --- include/ircd/json/tuple/at.h | 4 ++-- include/ircd/json/tuple/get.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/ircd/json/tuple/at.h b/include/ircd/json/tuple/at.h index f9b34b11b..df02ab9d4 100644 --- a/include/ircd/json/tuple/at.h +++ b/include/ircd/json/tuple/at.h @@ -135,7 +135,7 @@ at(const tuple &t, const R *ret; const auto closure { - [&name, &ret](const auto &key, const auto &val) + [&name, &ret](const auto &key, const auto &val) noexcept { if constexpr(std::is_assignable()) { @@ -168,7 +168,7 @@ at(tuple &t, R *ret; const auto closure { - [&name, &ret](const auto &key, auto &val) + [&name, &ret](const auto &key, auto &val) noexcept { if constexpr(std::is_assignable()) { diff --git a/include/ircd/json/tuple/get.h b/include/ircd/json/tuple/get.h index 63ea64760..e21ac2d52 100644 --- a/include/ircd/json/tuple/get.h +++ b/include/ircd/json/tuple/get.h @@ -135,6 +135,7 @@ noexcept { until(t, [&name, &ret] (const auto &key, auto&& val) + noexcept { if constexpr(std::is_assignable()) {