Solaris fixes
authorscantor <scantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 23 Jul 2012 20:07:29 +0000 (20:07 +0000)
committerscantor <scantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 23 Jul 2012 20:07:29 +0000 (20:07 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-xmltooling/branches/REL_1@989 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/io/HTTPRequest.cpp

index f11e76f..e4f5038 100644 (file)
@@ -157,17 +157,17 @@ bool GenericRequest::startLangMatching() const
     }
     
     m_langRangeIter = m_langRange.rbegin();
-    return (m_langRangeIter != m_langRange.rend());
+    return (m_langRangeIter != const_cast<const langrange_t&>(m_langRange).rend());
 }
 
 bool GenericRequest::continueLangMatching() const
 {
-    return (++m_langRangeIter != m_langRange.rend());
+    return (++m_langRangeIter != const_cast<const langrange_t&>(m_langRange).rend());
 }
 
 bool GenericRequest::matchLang(const XMLCh* tag) const
 {
-    if (m_langRangeIter == m_langRange.rend())
+    if (m_langRangeIter == const_cast<const langrange_t&>(m_langRange).rend())
         return false;
 
     // To match against a given range, the range has to be built up and then