[Boost-bugs] [Boost C++ Libraries] #1604: property_tree xml parser doesn't compile with gcc

Subject: [Boost-bugs] [Boost C++ Libraries] #1604: property_tree xml parser doesn't compile with gcc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-01-26 13:21:37


#1604: property_tree xml parser doesn't compile with gcc
----------------------------+-----------------------------------------------
 Reporter: tim_at_[hidden] | Type: Bugs
   Status: new | Milestone: Boost 1.35.0
Component: None | Version:
 Severity: Problem | Keywords:
----------------------------+-----------------------------------------------
 the property_tree xml parser doesn't seem to compile on gcc ... neither on
 gcc-4.1, 4.2 or 4.3 ... i was using the latest svn checkout ...

 {{{
 tim_at_laptop:~/workspace/boost/libs/property_tree/examples$ g++-4.2 -c
 -I../../.. debug_settings.cpp
 In file included from ../../../boost/property_tree/xml_parser.hpp:29,
                  from debug_settings.cpp:12:
 ../../../boost/property_tree/detail/xml_parser_read_rapidxml.hpp: In
 function ‘void
 boost::property_tree::xml_parser::read_xml_internal(std::basic_istream<typename
 Ptree::key_type::value_type, std::char_traits<typename
 Ptree::key_type::value_type> >&, Ptree&, int, const std::string&)’:
 ../../../boost/property_tree/detail/xml_parser_read_rapidxml.hpp:100:
 error: expected primary-expression before ‘;’ token
 ../../../boost/property_tree/detail/xml_parser_read_rapidxml.hpp: In
 function ‘void
 boost::property_tree::xml_parser::read_xml_internal(std::basic_istream<typename
 Ptree::key_type::value_type, std::char_traits<typename
 Ptree::key_type::value_type> >&, Ptree&, int, const std::string&) [with
 Ptree =
 boost::property_tree::basic_ptree<std::less<std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > >, std::basic_string<char,
 std::char_traits<char>, std::allocator<char> >,
 boost::property_tree::basic_path<std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > >, std::basic_string<char,
 std::char_traits<char>, std::allocator<char> >,
 boost::property_tree::translator>]’:
 ../../../boost/property_tree/xml_parser.hpp:60: instantiated from ‘void
 boost::property_tree::xml_parser::read_xml(const std::string&, Ptree&,
 int, const std::locale&) [with Ptree = boost::property_tree::ptree]’
 debug_settings.cpp:39: instantiated from here
 ../../../boost/property_tree/detail/xml_parser_read_rapidxml.hpp:100:
 error: address of overloaded function with no contextual type information

 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1604>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC