From bfb3b67db181a94282e93bfb46b56cf907858b39 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 25 Sep 2013 11:07:23 +0000 Subject: [PATCH] base: fix template ambiguity in FindValue(). --- src/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.h b/src/utils.h index e7c68375..77e8040d 100644 --- a/src/utils.h +++ b/src/utils.h @@ -69,9 +69,9 @@ template< class T > inline T FindValue(const char* name) n.ToLower(); for (int i = 0; i < T::Max; ++i) { - String s = T::GetName(T::Value(i)); + String s = T::GetName(typename T::Value(i)); if (s.ToLower().IndexOf(n.C()) > -1) - return T(T::Value(i)); + return T(typename T::Value(i)); } return T::Max; }