[cpp-sp] 01/02: Work around a MS compiler issue that popped up.
Scott Cantor
cantor.2 at osu.edu
Wed Oct 31 13:57:10 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=58e7e4abcaff89e9a1a7e354e11598c354ad5290
commit 58e7e4abcaff89e9a1a7e354e11598c354ad5290
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Oct 31 13:56:46 2018 -0400
Work around a MS compiler issue that popped up.
---
plugins/TemplateAttributeResolver.cpp | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/plugins/TemplateAttributeResolver.cpp b/plugins/TemplateAttributeResolver.cpp
index ba8ceac..81fa70a 100644
--- a/plugins/TemplateAttributeResolver.cpp
+++ b/plugins/TemplateAttributeResolver.cpp
@@ -26,7 +26,6 @@
#include "internal.h"
-#include <boost/bind.hpp>
#include <boost/algorithm/string.hpp>
#include <shibsp/exceptions.h>
#include <shibsp/SessionCache.h>
@@ -159,9 +158,16 @@ void TemplateAttributeResolver::resolveAttributes(ResolutionContext& ctx) const
return;
map<string,const Attribute*> attrmap;
+
for (vector<string>::const_iterator a = m_sources.begin(); a != m_sources.end(); ++a) {
- static bool (*eq)(const string&, const char*) = operator==;
- const Attribute* attr = find_if(*tctx.getInputAttributes(), boost::bind(eq, boost::cref(*a), boost::bind(&Attribute::getId, _1)));
+ const Attribute* attr = nullptr;
+ for (vector<Attribute*>::const_iterator b = tctx.getInputAttributes()->begin(); b != tctx.getInputAttributes()->end(); ++b) {
+ if (*a == (*b)->getId()) {
+ attr = *b;
+ break;
+ }
+ }
+
if (!attr) {
m_log.warn("source attribute (%s) missing, cannot resolve attribute (%s)", a->c_str(), m_dest.front().c_str());
return;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list