Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/cpp/scalgoproto.hh
Original file line number Diff line number Diff line change
Expand Up @@ -251,20 +251,20 @@ public:
class In {
protected:
template <typename T, typename... TT>
static T getObject_(TT &&... tt) noexcept {
static T getObject_(TT &&... tt) {
return T(std::forward<TT>(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 <typename T>
static std::pair<const T *, size_t> getListRaw_(Ptr p) noexcept {
static std::pair<const T *, size_t> getListRaw_(Ptr p) {
return {reinterpret_cast<const T *>(p.start), (size_t)p.size};
}
};
Expand Down