From bc8de7cdac81550287c3fb1a8b9e2288af29ba6f Mon Sep 17 00:00:00 2001 From: Gerardo Tauriello <gerardo.tauriello@unibas.ch> Date: Fri, 10 Aug 2018 11:31:32 +0200 Subject: [PATCH] SCHWED-3473: streams need explicit conversion to bool. --- modules/base/src/test_utils/compare_files.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/src/test_utils/compare_files.cc b/modules/base/src/test_utils/compare_files.cc index 18cff502d..13dac63ad 100644 --- a/modules/base/src/test_utils/compare_files.cc +++ b/modules/base/src/test_utils/compare_files.cc @@ -37,8 +37,8 @@ bool compare_files(const String& test, const String& gold_standard) } String test_line, gold_line; while (true) { - bool test_read = std::getline(test_stream, test_line); - bool gold_read = std::getline(gold_stream, gold_line); + bool test_read = static_cast<bool>(std::getline(test_stream, test_line)); + bool gold_read = static_cast<bool>(std::getline(gold_stream, gold_line)); if (!test_read && !gold_read) { // nothing to read anymore in any of the files return true; -- GitLab