From 7606a1000ccf532dc1351ea66ff868ec896f450b Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 20 Dec 2010 04:56:59 +0000 Subject: [PATCH] Avoid a warning with gcc 4.5. git-svn-id: https://svn.dealii.org/trunk@23017 0785d39b-7218-0410-832d-ea1e28bc413d --- .../boost/property_tree/detail/rapidxml.hpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/deal.II/contrib/boost/include/boost/property_tree/detail/rapidxml.hpp b/deal.II/contrib/boost/include/boost/property_tree/detail/rapidxml.hpp index 712bf3fb75..b8c005bee9 100644 --- a/deal.II/contrib/boost/include/boost/property_tree/detail/rapidxml.hpp +++ b/deal.II/contrib/boost/include/boost/property_tree/detail/rapidxml.hpp @@ -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 + 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'; } -- 2.39.5