From f1efd093a6d71983e825fbd59191219590210e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 26 Aug 2017 09:13:45 +0100 Subject: [PATCH] tests/libsample/simplefile.cpp: fix compilation error with gcc6 c++11 requires explicit casting to bool in some cases. --- tests/libsample/simplefile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libsample/simplefile.cpp b/tests/libsample/simplefile.cpp index deac1664..9c4ddb47 100644 --- a/tests/libsample/simplefile.cpp +++ b/tests/libsample/simplefile.cpp @@ -90,13 +90,13 @@ bool SimpleFile::exists() const { std::ifstream ifile(p->m_filename); - return ifile; + return (bool)ifile; } bool SimpleFile::exists(const char* filename) { std::ifstream ifile(filename); - return ifile; + return (bool)ifile; }