add typename qualifiers

This commit is contained in:
Jez Higgins 2012-11-15 22:08:29 +00:00
parent 63a1d869c2
commit 06eca85b75
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ private:
if(std::find(current_includes_.begin(), current_includes_.end(), href) != current_includes_.end())
{
std::string error = "Stylesheet '" + string_adaptor::asStdString(href) + "' includes/imports itself ";
for(HrefStack::const_iterator i = current_includes_.begin(), ie = current_includes_.end(); i != ie; ++i)
for(typename HrefStack::const_iterator i = current_includes_.begin(), ie = current_includes_.end(); i != ie; ++i)
error += "\n " + string_adaptor::asStdString(*i);
throw std::runtime_error(error);
} // if ...

View file

@ -61,7 +61,7 @@ protected:
{
if(has_select_)
{
for(string_type::const_iterator i = ch.begin(), e = ch.end(); i != e; ++i)
for(typename string_type::const_iterator i = ch.begin(), e = ch.end(); i != e; ++i)
if(!Arabica::XML::is_space(*i))
throw SAX::SAXException("A variable or param can not have both a select attribute and text context");
}