[JIRA] (CPPOST-123) Build error with RH9
Scott Cantor (Jira)
jira at shibboleth.atlassian.net
Mon Nov 15 21:29:58 UTC 2021
Scott Cantor ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A5b78efc9-1379-42cc-a3f6-56c6ea3a0007 ) *commented* on CPPOST-123 ( https://shibboleth.atlassian.net/browse/CPPOST-123?atlOrigin=eyJpIjoiZTdhNTc4MTY4MWRmNGVhZWEzMTJiMGRhMjUzNzQ1OTUiLCJwIjoiaiJ9 )
Re: Build error with RH9 ( https://shibboleth.atlassian.net/browse/CPPOST-123?atlOrigin=eyJpIjoiZTdhNTc4MTY4MWRmNGVhZWEzMTJiMGRhMjUzNzQ1OTUiLCJwIjoiaiJ9 )
Patch is
diff --git a/saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp b/saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp
index bf24037..7a5ab47 100644
--- a/saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp
+++ b/saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp
@@ -127,11 +127,11 @@ bool EntityAttributesEntityMatcher::matches(const EntityDescriptor& entity) cons
if (xo) {
extFound = true;
// If we find a matching tag, we win. Each tag is treated in OR fashion.
- if (find_if(m_tags.begin(), m_tags.end(),
- lambda::bind(&EntityAttributesEntityMatcher::_matches, this, dynamic_cast<const EntityAttributes*>(xo),
- lambda::bind(&boost::shared_ptr<Attribute>::get, _1))) != m_tags.end()) {
- return true;
- }
+ for (vector<boost::shared_ptr<Attribute>>::const_iterator i = m_tags.begin(); i != m_tags.end(); ++i) {
+ if (_matches(dynamic_cast<const EntityAttributes*>(xo), i->get())) {
+ return true;
+ }
+ }
}
}
@@ -144,11 +144,11 @@ bool EntityAttributesEntityMatcher::matches(const EntityDescriptor& entity) cons
if (xo) {
extFound = true;
// If we find a matching tag, we win. Each tag is treated in OR fashion.
- if (find_if(m_tags.begin(), m_tags.end(),
- lambda::bind(&EntityAttributesEntityMatcher::_matches, this, dynamic_cast<const EntityAttributes*>(xo),
- lambda::bind(&boost::shared_ptr<Attribute>::get, _1))) != m_tags.end()) {
- return true;
- }
+ for (vector<boost::shared_ptr<Attribute>>::const_iterator i = m_tags.begin(); i != m_tags.end(); ++i) {
+ if (_matches(dynamic_cast<const EntityAttributes*>(xo), i->get())) {
+ return true;
+ }
+ }
}
}
group = dynamic_cast<EntitiesDescriptor*>(group->getParent());
( https://shibboleth.atlassian.net/browse/CPPOST-123#add-comment?atlOrigin=eyJpIjoiZTdhNTc4MTY4MWRmNGVhZWEzMTJiMGRhMjUzNzQ1OTUiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/CPPOST-123#add-comment?atlOrigin=eyJpIjoiZTdhNTc4MTY4MWRmNGVhZWEzMTJiMGRhMjUzNzQ1OTUiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100183- sha1:deae3ee )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20211115/74fdd748/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-3cf786f1-2f00-4aa7-8519-aa0839b1235d
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211115/74fdd748/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-0f4e8c7b-6c53-4e04-b878-faa8a3fb4f70
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211115/74fdd748/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-b86b1209-cf41-43d3-9f3e-ed939e500153
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211115/74fdd748/attachment-0005.png>
More information about the commits
mailing list