[cpp-opensaml] 01/02: CPPOST-123 - Build error with RH9

Scott Cantor cantor.2 at osu.edu
Tue Nov 16 15:19:31 UTC 2021


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository cpp-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-opensaml.git;a=commit;h=e4bd2adf245cdc607a3b56ef1537e62f71efaf61

commit e4bd2adf245cdc607a3b56ef1537e62f71efaf61
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Nov 16 10:18:29 2021 -0500

    CPPOST-123 - Build error with RH9
    
    https://shibboleth.atlassian.net/browse/CPPOST-123
---
 .../metadata/impl/EntityAttributesEntityMatcher.cpp  | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp b/saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp
index bf24037..f4b718c 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());

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list