Fixed error with problem 2 not compiling

This commit is contained in:
2019-09-05 20:16:58 -04:00
parent 242a2016d6
commit efa76caca8

View File

@@ -260,7 +260,7 @@ T getProduct(const std::vector<T>& ary){
//This is a function that searches a vecter for an element. Returns true if they key is found in list
template <class T>
bool isFound(std::vector<T> ary, T key){
std::vector<T>::iterator location = std::find(ary.begin(), ary.end(), key);
typename std::vector<T>::iterator location = std::find(ary.begin(), ary.end(), key);
if(location == ary.end()){
return false;
}