Boost C++ Libraries: Ticket #1604: property_tree xml parser doesn't compile with gcc https://svn.boost.org/trac10/ticket/1604 <p> 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 ... </p> <pre class="wiki">tim@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&lt;typename Ptree::key_type::value_type, std::char_traits&lt;typename Ptree::key_type::value_type&gt; &gt;&amp;, Ptree&amp;, int, const std::string&amp;)’: ../../../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&lt;typename Ptree::key_type::value_type, std::char_traits&lt;typename Ptree::key_type::value_type&gt; &gt;&amp;, Ptree&amp;, int, const std::string&amp;) [with Ptree = boost::property_tree::basic_ptree&lt;std::less&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, boost::property_tree::basic_path&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, boost::property_tree::translator&gt;]’: ../../../boost/property_tree/xml_parser.hpp:60: instantiated from ‘void boost::property_tree::xml_parser::read_xml(const std::string&amp;, Ptree&amp;, int, const std::locale&amp;) [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 </pre><p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1604 Trac 1.4.3 Marshall Clow Mon, 28 Jan 2008 15:52:21 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1604#comment:1 https://svn.boost.org/trac10/ticket/1604#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">kaalus</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">property_tree</span> </li> </ul> Ticket oliver.kowalke@… Tue, 29 Jan 2008 07:25:26 GMT attachment set https://svn.boost.org/trac10/ticket/1604 https://svn.boost.org/trac10/ticket/1604 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">xml_parser_read_rapidxml.hpp.patch</span> </li> </ul> <p> patch for xml_parser_read_rapidxml.hpp </p> Ticket Oliver Tue, 29 Jan 2008 07:28:19 GMT <link>https://svn.boost.org/trac10/ticket/1604#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1604#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1604#comment:1" title="Comment 1">marshall</a>: Hi, I've added an patch. It adds the template keyword to the member function parse of xml_document&lt;&gt;. Now it compiles with gcc-4.2. Probably the same modification is required on other code pieces - I don't know. so long, Oliver </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Thu, 14 May 2009 16:08:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1604#comment:3 https://svn.boost.org/trac10/ticket/1604#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed already. </p> Ticket