From: Scott Cantor Date: Mon, 23 Jul 2012 20:07:29 +0000 (+0000) Subject: Solaris fixes X-Git-Tag: 1.5.0~2 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=c73d95072f73521bd4b881214631c59adf79f41a Solaris fixes --- diff --git a/xmltooling/io/HTTPRequest.cpp b/xmltooling/io/HTTPRequest.cpp index f11e76f..e4f5038 100644 --- a/xmltooling/io/HTTPRequest.cpp +++ b/xmltooling/io/HTTPRequest.cpp @@ -157,17 +157,17 @@ bool GenericRequest::startLangMatching() const } m_langRangeIter = m_langRange.rbegin(); - return (m_langRangeIter != m_langRange.rend()); + return (m_langRangeIter != const_cast(m_langRange).rend()); } bool GenericRequest::continueLangMatching() const { - return (++m_langRangeIter != m_langRange.rend()); + return (++m_langRangeIter != const_cast(m_langRange).rend()); } bool GenericRequest::matchLang(const XMLCh* tag) const { - if (m_langRangeIter == m_langRange.rend()) + if (m_langRangeIter == const_cast(m_langRange).rend()) return false; // To match against a given range, the range has to be built up and then