From 063bd39b094e7b9a2628a70224607602ec507cd3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 20 Aug 2019 22:19:24 -0700 Subject: [PATCH] ircd::m::room::auth: Remove noexcept on interface for IO termination propagation. --- include/ircd/m/room/auth.h | 12 ++++++------ modules/m_room_auth.cc | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/ircd/m/room/auth.h b/include/ircd/m/room/auth.h index 3bcc3f781..dae8937cb 100644 --- a/include/ircd/m/room/auth.h +++ b/include/ircd/m/room/auth.h @@ -49,11 +49,11 @@ struct ircd::m::room::auth::refs bool for_each(const string_view &type, const closure_bool &) const; bool for_each(const closure_bool &) const; - bool has(const string_view &type) const noexcept; - bool has(const event::idx &) const noexcept; + bool has(const string_view &type) const; + bool has(const event::idx &) const; - size_t count(const string_view &type) const noexcept; - size_t count() const noexcept; + size_t count(const string_view &type) const; + size_t count() const; refs(const event::idx &idx) :idx{idx} @@ -68,8 +68,8 @@ struct ircd::m::room::auth::chain public: bool for_each(const closure &) const; - bool has(const string_view &type) const noexcept; - size_t depth() const noexcept; + bool has(const string_view &type) const; + size_t depth() const; chain(const event::idx &idx) :idx{idx} diff --git a/modules/m_room_auth.cc b/modules/m_room_auth.cc index 8c30ce8ae..3bd05485e 100644 --- a/modules/m_room_auth.cc +++ b/modules/m_room_auth.cc @@ -581,7 +581,7 @@ const size_t IRCD_MODULE_EXPORT ircd::m::room::auth::refs::count() -const noexcept +const { return count(string_view{}); } @@ -589,7 +589,7 @@ const noexcept size_t IRCD_MODULE_EXPORT ircd::m::room::auth::refs::count(const string_view &type) -const noexcept +const { size_t ret(0); for_each(type, [&ret](const auto &) @@ -604,7 +604,7 @@ const noexcept bool IRCD_MODULE_EXPORT ircd::m::room::auth::refs::has(const event::idx &idx) -const noexcept +const { return !for_each([&idx](const event::idx &ref) { @@ -615,7 +615,7 @@ const noexcept bool IRCD_MODULE_EXPORT ircd::m::room::auth::refs::has(const string_view &type) -const noexcept +const { bool ret{false}; for_each(type, [&ret](const auto &) @@ -683,7 +683,7 @@ const size_t IRCD_MODULE_EXPORT ircd::m::room::auth::chain::depth() -const noexcept +const { size_t ret(0); for_each([&ret](const auto &) @@ -698,7 +698,7 @@ const noexcept bool IRCD_MODULE_EXPORT ircd::m::room::auth::chain::has(const string_view &type) -const noexcept +const { bool ret(false); for_each([&type, &ret]