Commit 7dbfb0ae authored by Mikhail Titov's avatar Mikhail Titov Committed by Murray Cumming

Fix the build with C++11 compilers, such as MS Visual C++ 2013.

Implicit conversions from streams to bool are no longer allowed.
parent 09ca556d
......@@ -39,6 +39,6 @@ namespace xmlpp
bool IStreamParserInputBuffer::do_close()
{
return input_;
return input_.good();
}
}
......@@ -29,13 +29,13 @@ namespace xmlpp
// here we rely on the ostream implicit conversion to boolean, to know if the stream can be used and/or if the write succeded.
if(output_)
output_.write(buffer, len);
return output_;
return output_.good();
}
bool OStreamOutputBuffer::do_close()
{
if(output_)
output_.flush();
return output_;
return output_.good();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment