You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently e.g. rfl::json provides two ways to parse a string: from std::string or from std::istream (where the second delegates to the first). That means that parsing from std::string_view currently requires an allocation. yyjson_read() doesn’t take ownership of the passed string, so parsing directly from std::string_view should be possible unless I’m missing something.
I think the same holds for other formats, but I only checked yyjson and pugixml.
The text was updated successfully, but these errors were encountered:
Currently e.g.
rfl::json
provides two ways to parse a string: fromstd::string
or fromstd::istream
(where the second delegates to the first). That means that parsing fromstd::string_view
currently requires an allocation.yyjson_read()
doesn’t take ownership of the passed string, so parsing directly fromstd::string_view
should be possible unless I’m missing something.I think the same holds for other formats, but I only checked yyjson and pugixml.
The text was updated successfully, but these errors were encountered: