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 6a1babb commit 185fdecCopy full SHA for 185fdec
parse/jsd_convenience.hpp
@@ -20,6 +20,14 @@ namespace JSON
20
static_assert (Internal::can_parse<T>::value, "the object you try to parse has no applicable interface");
21
}
22
23
+ template <typename T>
24
+ T make_from_json(std::istream&& stream)
25
+ {
26
+ T res;
27
+ JSON::parse(res, "", JSON::parse_json(stream));
28
+ return res;
29
+ }
30
+
31
template <typename T>
32
T make_from_json(std::istream& stream)
33
{
0 commit comments