Replacing accidental use of C++11 auto

This commit is contained in:
Strahinja Val Markovic 2012-07-27 13:52:56 -07:00
parent 0d9d697b50
commit e46ea47df2

View File

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