X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=blobdiff_plain;f=xmltooling%2Futil%2FPredicates.h;h=e8e6169d9e77a1adc8caddf784a387e2231ac0fa;hp=baf22682eb5110bcb89d2fa04b7d6a1dfbed8b33;hb=e71456d66cbcab1c35795730535cfd728f42ec73;hpb=4677d18fb1cdcf390a69f49a03fd234e18b14b9e diff --git a/xmltooling/util/Predicates.h b/xmltooling/util/Predicates.h index baf2268..e8e6169 100644 --- a/xmltooling/util/Predicates.h +++ b/xmltooling/util/Predicates.h @@ -92,8 +92,8 @@ namespace xmltooling { * @return the first object in the container matching the predicate, or NULL */ template - typename Container::value_type find_if(const typename Container& c, const typename Predicate& p) { - Container::const_iterator i = std::find_if(c.begin(), c.end(), p); + typename Container::value_type find_if(const Container& c, const Predicate& p) { + typename Container::const_iterator i = std::find_if(c.begin(), c.end(), p); return (i!=c.end()) ? *i : NULL; }