From: bangerth Date: Wed, 15 Sep 2010 02:41:07 +0000 (+0000) Subject: Make compile with gcc 3.3.x. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1283dc21b35b0abb5af3f10a46b219c68010dea7;p=dealii-svn.git Make compile with gcc 3.3.x. git-svn-id: https://svn.dealii.org/trunk@21970 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/boost/include/boost/property_tree/detail/xml_parser_read_rapidxml.hpp b/deal.II/contrib/boost/include/boost/property_tree/detail/xml_parser_read_rapidxml.hpp index d271d5e36e..6fdd0888ad 100644 --- a/deal.II/contrib/boost/include/boost/property_tree/detail/xml_parser_read_rapidxml.hpp +++ b/deal.II/contrib/boost/include/boost/property_tree/detail/xml_parser_read_rapidxml.hpp @@ -1,8 +1,8 @@ // ---------------------------------------------------------------------------- // Copyright (C) 2007 Marcin Kalicinski // -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // For more information, see www.boost.org @@ -26,11 +26,11 @@ namespace boost { namespace property_tree { namespace xml_parser switch (node->type()) { // Element nodes - case rapidxml::node_element: + case rapidxml::node_element: { // Create node Ptree &pt_node = pt.push_back(std::make_pair(node->name(), Ptree()))->second; - + // Copy attributes if (node->first_attribute()) { @@ -119,9 +119,9 @@ namespace boost { namespace property_tree { namespace xml_parser pt.swap(local); } catch (rapidxml::parse_error &e) { long line = static_cast( - std::count(&v.front(), e.where(), Ch('\n')) + 1); + std::count(&v.front(), e.template where(), Ch('\n')) + 1); BOOST_PROPERTY_TREE_THROW( - xml_parser_error(e.what(), filename, line)); + xml_parser_error(e.what(), filename, line)); } }