From 6fb9cd7bf1bdd129114936594f4288f4cbf482f0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 8 Oct 2022 15:37:14 -0700 Subject: [PATCH] ircd::tokens: Relax noexcept on token result closures. --- include/ircd/tokens.h | 12 ++++++------ ircd/tokens.cc | 6 ------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/include/ircd/tokens.h b/include/ircd/tokens.h index 233192112..5cc62d564 100644 --- a/include/ircd/tokens.h +++ b/include/ircd/tokens.h @@ -18,15 +18,15 @@ namespace ircd // to allocate and copy the token with null termination. using token_view = closure_bool; - bool tokens(const string_view &, const char sep, const token_view &) noexcept; - bool tokens(const string_view &, const string_view &sep, const token_view &) noexcept; + bool tokens(const string_view &, const char sep, const token_view &); + bool tokens(const string_view &, const string_view &sep, const token_view &); - size_t tokens(const string_view &, const char sep, const size_t lim, const token_view &) noexcept; - size_t tokens(const string_view &, const string_view &sep, const size_t lim, const token_view &) noexcept; + size_t tokens(const string_view &, const char sep, const size_t lim, const token_view &); + size_t tokens(const string_view &, const string_view &sep, const size_t lim, const token_view &); // Copies tokens into your buffer and null terminates strtok() style. Returns BYTES of buf consumed. - size_t tokens(const string_view &, const char sep, const mutable_buffer &, const token_view &) noexcept; - size_t tokens(const string_view &, const string_view &sep, const mutable_buffer &, const token_view &) noexcept; + size_t tokens(const string_view &, const char sep, const mutable_buffer &, const token_view &); + size_t tokens(const string_view &, const string_view &sep, const mutable_buffer &, const token_view &); // Receive token view into iterator range template