[cig-commits] [commit] master: do not use a c++11 istream feature (be98f8a)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon May 19 15:21:13 PDT 2014


Repository : https://github.com/geodynamics/aspect

On branch  : master
Link       : https://github.com/geodynamics/aspect/compare/dbe66e1b6d25d5ff21653c48f14f343e10ae69f4...be98f8a1dd64b49dcd6f151085c75c7b06c210d6

>---------------------------------------------------------------

commit be98f8a1dd64b49dcd6f151085c75c7b06c210d6
Author: Timo Heister <timo.heister at gmail.com>
Date:   Mon May 19 18:21:06 2014 -0400

    do not use a c++11 istream feature


>---------------------------------------------------------------

be98f8a1dd64b49dcd6f151085c75c7b06c210d6
 source/velocity_boundary_conditions/gplates.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/velocity_boundary_conditions/gplates.cc b/source/velocity_boundary_conditions/gplates.cc
index 44ea2bc..bf0e512 100644
--- a/source/velocity_boundary_conditions/gplates.cc
+++ b/source/velocity_boundary_conditions/gplates.cc
@@ -117,7 +117,7 @@ namespace aspect
       GPlatesLookup::fexists(const std::string &filename) const
       {
         std::ifstream ifile(filename.c_str());
-        return ifile;
+        return !(!ifile); // only in c++11 you can convert to bool directly
       }
 
       void



More information about the CIG-COMMITS mailing list