[Boost-bugs] [Boost C++ Libraries] #4146: ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117: error: non-constant `(((int)f_c) | 3072)' cannot be used as template argument

Subject: [Boost-bugs] [Boost C++ Libraries] #4146: ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117: error: non-constant `(((int)f_c) | 3072)' cannot be used as template argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-24 16:32:58


#4146: ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117: error: non-
constant `(((int)f_c) | 3072)' cannot be used as template argument
---------------------------------------------------------------------+------
 Reporter: Jan-Hein Bührman <buhrman@…> | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: | Component: property_tree
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: property_tree xml_parser non-constant template argument |
---------------------------------------------------------------------+------
 When compiling today's development trunk of boost, I see the following
 errors:

 {{{
 [snip]
 gcc.compile.c++ bin.v2/libs/graph/build/gcc-3.4.4/release/threading-
 multi/graphml.o
 ./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::string, std::string,
 std::less<std::string> >]':
 ./boost/property_tree/xml_parser.hpp:52: instantiated from `void
 boost::property_tree::xml_parser::read_xml(std::basic_istream<typename
 Ptree::key_type::value_type, std::char_traits<typename
 Ptree::key_type::value_type> >&, Ptree&, int) [with Ptree =
 boost::property_tree::ptree]'
 libs\graph\src\graphml.cpp:49: instantiated from here
 ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117: error: non-
 constant `(((int)f_c) | 3072)' cannot be used as template argument
 ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117: error: no
 matching function for call to
 `boost::property_tree::detail::rapidxml::xml_document<char>::parse(char*)'
 [snip]
 }}}

 bjam was generated in the follwing way:
 {{{
 $ ./bootstrap.sh --prefix=$HOME/local --exec-
 prefix=$HOME/local/${MACHTYPE=i686-pc-cygwin}
 }}}

 It is compiled on Windows XP machine, under a recent update of Cygwin.
 {{{
 $ g++ --version
 g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
 Copyright (C) 2004 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions. There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 }}}

 I googled up a workaround (ref. {{{<http://old.nabble.com/Sandia-gcc-3.4.6
 -error-on-Boost.Graph-td26800239.html>}}}) that fixes the problem for me,
 see attached {{{svn diff}}}.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4146>
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:50:03 UTC