From e46ea47df2aebf1137fed61c205891f07b72ad0e Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Fri, 27 Jul 2012 13:52:56 -0700 Subject: [PATCH] Replacing accidental use of C++11 auto --- cpp/ycm/Utils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/ycm/Utils.h b/cpp/ycm/Utils.h index 18f51b76..699a24fa 100644 --- a/cpp/ycm/Utils.h +++ b/cpp/ycm/Utils.h @@ -60,11 +60,10 @@ FindWithDefault( Container &container, const Key &key, const typename Container::mapped_type &value ) { - auto it = container.find( key ); + typename Container::iterator it = container.find( key ); return it != container.end() ? *it : value; } } // namespace YouCompleteMe #endif /* end of include guard: UTILS_H_KEPMRPBH */ -