]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a warning with gcc 4.5.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Dec 2010 04:56:59 +0000 (04:56 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Dec 2010 04:56:59 +0000 (04:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@23017 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/boost/include/boost/property_tree/detail/rapidxml.hpp

index 712bf3fb75c2d8d73258100ef05fd2b1063cfe29..b8c005bee9cfcf07ddc8192d00fa796e4df1b567 100644 (file)
@@ -259,6 +259,23 @@ namespace boost { namespace property_tree { namespace detail {namespace rapidxml
     //! \cond internal
     namespace internal
     {
+      namespace
+      {
+       inline
+       bool beyond_ascii (const char)
+       {
+         return false;
+       }
+
+       template <typename Ch>
+       inline
+       bool beyond_ascii (const Ch c)
+       {
+         return (c > 255);
+       }
+      }
+      
+       
 
         // Struct that contains lookup tables for the parser
         // It must be a template to allow correct linking (because it has static data members, which are defined in a header file).
@@ -314,7 +331,7 @@ namespace boost { namespace property_tree { namespace detail {namespace rapidxml
         inline size_t get_index(const Ch c)
         {
             // If not ASCII char, its sematic is same as plain 'z'
-            if (c > 255)
+         if (beyond_ascii(c))
             {
                 return 'z';
             }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.