From: scantor Date: Tue, 24 Jul 2012 17:11:31 +0000 (+0000) Subject: Solaris workaround X-Git-Tag: 2.5.0~26 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=051d18c3e6ab2ac3544ba18d818e416a431611fa Solaris workaround git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3732 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shibsp/attribute/resolver/impl/MetadataAttributeExtractor.cpp b/shibsp/attribute/resolver/impl/MetadataAttributeExtractor.cpp index 0244d17..9071521 100644 --- a/shibsp/attribute/resolver/impl/MetadataAttributeExtractor.cpp +++ b/shibsp/attribute/resolver/impl/MetadataAttributeExtractor.cpp @@ -173,11 +173,10 @@ void MetadataExtractor::getAttributeIds(vector& attributes) const attributes.push_back(m_orgDisplayName); if (!m_orgURL.empty()) attributes.push_back(m_orgURL); - static void (vector::* push_back)(const string&) = &vector::push_back; - static const string& (contact_tuple_t::* tget)() const = &contact_tuple_t::get<0>; - static const string& (logo_tuple_t::* tget2)() const = &logo_tuple_t::get<0>; - for_each(m_contacts.begin(), m_contacts.end(), boost::bind(push_back, boost::ref(attributes), boost::bind(tget, _1))); - for_each(m_logos.begin(), m_logos.end(), boost::bind(push_back, boost::ref(attributes), boost::bind(tget2, _1))); + for (vector::const_iterator c = m_contacts.begin(); c != m_contacts.end(); ++c) + attributes.push_back(c->get<0>()); + for (vector::const_iterator l = m_logos.begin(); l != m_logos.end(); ++l) + attributes.push_back(l->get<0>()); } void MetadataExtractor::extractAttributes(