F
Frederik Himpe
I'm implementing a SAX handler with libxml++. I have this piece of code:
void PalamedeParser:n_start_element(const std::string &name, const
AttributeList &attributes) {
AttributeList::iterator it = attributes.begin();
with AttributeList defined as
typedef std::deque< Attribute > xmlpp::SaxParser::AttributeList
On the initialization of the iterator, I got this error:
conversion from
`__gnu_norm::_Deque_iterator<xmlpp::SaxParser::Attribute, const
xmlpp::SaxParser::Attribute&, const xmlpp::SaxParser::Attribute*>' to
non-scalar type `__gnu_norm::_Deque_iterator<xmlpp::SaxParser::Attribute,
xmlpp::SaxParser::Attribute&, xmlpp::SaxParser::Attribute*>' requested
It seems the compiler does not like the fact that attributes is a
constant. How should I iterate this deque?
Frederik
void PalamedeParser:n_start_element(const std::string &name, const
AttributeList &attributes) {
AttributeList::iterator it = attributes.begin();
with AttributeList defined as
typedef std::deque< Attribute > xmlpp::SaxParser::AttributeList
On the initialization of the iterator, I got this error:
conversion from
`__gnu_norm::_Deque_iterator<xmlpp::SaxParser::Attribute, const
xmlpp::SaxParser::Attribute&, const xmlpp::SaxParser::Attribute*>' to
non-scalar type `__gnu_norm::_Deque_iterator<xmlpp::SaxParser::Attribute,
xmlpp::SaxParser::Attribute&, xmlpp::SaxParser::Attribute*>' requested
It seems the compiler does not like the fact that attributes is a
constant. How should I iterate this deque?
Frederik