[cpp-sp COMMIT] /branches/REL_2/shibsp/handler/impl/TransformSessionInitiator.cpp

noreply at shibboleth.net noreply at shibboleth.net
Thu Jan 22 20:18:25 EST 2015


Author: scantor
Date: Thu Jan 22 20:18:24 2015
New Revision: 3898

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3898&view=rev
Log:
SSPCPP-616 - fix tuple ambiguity

Modified:
    branches/REL_2/shibsp/handler/impl/TransformSessionInitiator.cpp

Modified: branches/REL_2/shibsp/handler/impl/TransformSessionInitiator.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/handler/impl/TransformSessionInitiator.cpp?rev=3898&r1=3897&r2=3898&view=diff
==============================================================================
--- branches/REL_2/shibsp/handler/impl/TransformSessionInitiator.cpp (original)
+++ branches/REL_2/shibsp/handler/impl/TransformSessionInitiator.cpp Thu Jan 22 20:18:24 2015
@@ -109,7 +109,7 @@
                             auto_ptr_char m(e->getAttributeNS(nullptr, match));
                             auto_ptr_char repl(e->getTextContent());
                             if (m.get() && *m.get() && repl.get() && *repl.get())
-                                m_regex.push_back(tuple<bool,string,string>(flag, m.get(), repl.get()));
+                                m_regex.push_back(boost::tuple<bool,string,string>(flag, m.get(), repl.get()));
                         }
                         else {
                             m_log.warn("Unknown element found in Transform SessionInitiator configuration, check for errors.");
@@ -133,7 +133,7 @@
 #ifndef SHIBSP_LITE
         bool m_alwaysRun;
         vector< pair<bool, string> > m_subst;
-        vector< tuple<bool,string,string> > m_regex;
+        vector< boost::tuple<bool,string,string> > m_regex;
 #endif
     };
 
@@ -254,7 +254,7 @@
     }
 
     // Now try regexs.
-    for (vector< tuple<bool,string,string> >::const_iterator r = m_regex.begin(); r != m_regex.end(); ++r) {
+    for (vector< boost::tuple<bool,string,string> >::const_iterator r = m_regex.begin(); r != m_regex.end(); ++r) {
         try {
             RegularExpression exp(r->get<1>().c_str());
             XMLCh* temp = exp.replace(entityID.c_str(), r->get<2>().c_str());



More information about the commits mailing list