]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile with gcc 3.3.x.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Sep 2010 02:41:07 +0000 (02:41 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Sep 2010 02:41:07 +0000 (02:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@21970 0785d39b-7218-0410-832d-ea1e28bc413d

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

index d271d5e36e7c511e50f7520e67a47d1688c51f9a..6fdd0888ad7ad9c51603920c6bcc180a9eac36c5 100644 (file)
@@ -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<long>(
-                std::count(&v.front(), e.where<Ch>(), Ch('\n')) + 1);
+                std::count(&v.front(), e.template where<Ch>(), Ch('\n')) + 1);
             BOOST_PROPERTY_TREE_THROW(
-                xml_parser_error(e.what(), filename, line));  
+                xml_parser_error(e.what(), filename, line));
         }
     }
 

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.