From e71456d66cbcab1c35795730535cfd728f42ec73 Mon Sep 17 00:00:00 2001 From: cantor Date: Fri, 9 Nov 2007 05:12:43 +0000 Subject: [PATCH] Misuse of typename. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@422 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/util/Predicates.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.1.4