From: Gert Wollny <gw.fossdev@gmail.com>
Date: Wed, 29 Jun 2014 16:52:43 +0200
Subject: Fix compilation with g++-6
Bug-Debian: https://bugs.debian.org/811657

--- a/src/Bpp/Io/FileTools.cpp
+++ b/src/Bpp/Io/FileTools.cpp
@@ -54,7 +54,7 @@
 bool FileTools::fileExists(const std::string& filename)
 {
   ifstream file(filename.c_str());
-  bool test = file ? true : false; //needed for CLang.
+  bool test = file.good(); //needed for CLang.
   file.close();
   return test;
 }
@@ -64,7 +64,7 @@
 bool FileTools::directoryExists(const std::string& path)
 {
   ifstream file(path.c_str());
-  bool test = file ? true : false; //needed for CLang.
+  bool test = file.good(); //needed for CLang.
   file.close();
   return test;
 }
