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 */ -