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}; } };