File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class JSON_API Reader {
99
99
100
100
// / \brief Parse from input stream.
101
101
// / \see Json::operator>>(std::istream&, Json::Value&).
102
- bool parse (std::istream & is, Value& root, bool collectComments = true );
102
+ bool parse (JSONCPP_ISTREAM & is, Value& root, bool collectComments = true );
103
103
104
104
/* * \brief Returns a user friendly string that list errors in the parsed
105
105
* document.
@@ -366,7 +366,7 @@ class JSON_API CharReaderBuilder : public CharReader::Factory {
366
366
*/
367
367
bool JSON_API parseFromStream (
368
368
CharReader::Factory const &,
369
- std::istream &,
369
+ JSONCPP_ISTREAM &,
370
370
Value* root, std::string* errs);
371
371
372
372
/* * \brief Read from 'sin' into 'root'.
@@ -393,7 +393,7 @@ bool JSON_API parseFromStream(
393
393
\throw std::exception on parse error.
394
394
\see Json::operator<<()
395
395
*/
396
- JSON_API std::istream & operator >>(std::istream &, Value&);
396
+ JSON_API JSONCPP_ISTREAM & operator >>(JSONCPP_ISTREAM &, Value&);
397
397
398
398
} // namespace Json
399
399
Original file line number Diff line number Diff line change @@ -2007,7 +2007,7 @@ void CharReaderBuilder::setDefaults(Json::Value* settings)
2007
2007
// global functions
2008
2008
2009
2009
bool parseFromStream (
2010
- CharReader::Factory const & fact, std::istream & sin,
2010
+ CharReader::Factory const & fact, JSONCPP_ISTREAM & sin,
2011
2011
Value* root, std::string* errs)
2012
2012
{
2013
2013
JSONCPP_OSTRINGSTREAM ssin;
@@ -2020,7 +2020,7 @@ bool parseFromStream(
2020
2020
return reader->parse (begin, end, root, errs);
2021
2021
}
2022
2022
2023
- std::istream & operator >>(std::istream & sin, Value& root) {
2023
+ JSONCPP_ISTREAM & operator >>(JSONCPP_ISTREAM & sin, Value& root) {
2024
2024
CharReaderBuilder b;
2025
2025
std::string errs;
2026
2026
bool ok = parseFromStream (b, sin , &root, &errs);
You can’t perform that action at this time.
0 commit comments