From 263d708169aa5607ee8009f59703eecfe052a7f1 Mon Sep 17 00:00:00 2001 From: Jungwoo Yang Date: Tue, 11 Nov 2025 17:36:53 +0900 Subject: [PATCH] Remove noexcept in In::getters. --- lib/cpp/scalgoproto.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cpp/scalgoproto.hh b/lib/cpp/scalgoproto.hh index 7a537ac..dd0680a 100644 --- a/lib/cpp/scalgoproto.hh +++ b/lib/cpp/scalgoproto.hh @@ -251,20 +251,20 @@ public: class In { protected: template - static T getObject_(TT &&... tt) noexcept { + static T getObject_(TT &&... tt) { return T(std::forward(tt)...); } - static std::string_view getText_(const Reader * reader, Ptr p) noexcept { + static std::string_view getText_(const Reader * reader, Ptr p) { if (p.size == 0) return std::string_view(""); reader->validateTextPtr_(p); return std::string_view(p.start, p.size); } - static Bytes getBytes_(Ptr p) noexcept { return Bytes(p.start, p.size); } + static Bytes getBytes_(Ptr p) { return Bytes(p.start, p.size); } template - static std::pair getListRaw_(Ptr p) noexcept { + static std::pair getListRaw_(Ptr p) { return {reinterpret_cast(p.start), (size_t)p.size}; } };