Fix C++17 mode compilation with Apple clang (#721)

This commit is contained in:
Denis Glazachev 2018-11-22 06:38:25 +04:00 committed by Eric
parent b1717916d1
commit 56f5cd6a72

View File

@ -207,7 +207,7 @@ void ResultsChecker::Add(const std::string& entry_pattern, ResultsCheckFn fn) {
void ResultsChecker::CheckResults(std::stringstream& output) {
// first reset the stream to the start
{
auto start = std::ios::streampos(0);
auto start = std::stringstream::pos_type(0);
// clear before calling tellg()
output.clear();
// seek to zero only when needed