We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c20194 commit c36142dCopy full SHA for c36142d
include/rfl/json/read.hpp
@@ -45,10 +45,10 @@ Result<internal::wrap_in_rfl_array_t<T>> read(
45
46
/// Parses an object from a stringstream.
47
template <class T, class... Ps>
48
-auto read(std::istream& _stream) {
+auto read(std::istream& _stream, const yyjson_read_flag _flag = 0) {
49
const auto json_str = std::string(std::istreambuf_iterator<char>(_stream),
50
std::istreambuf_iterator<char>());
51
- return read<T, Ps...>(json_str);
+ return read<T, Ps...>(json_str, _flag);
52
}
53
54
} // namespace json
0 commit comments