added static cast to bool from ifstream for clang++ compilation