mirror of
https://bitbucket.org/Mattrixwv/my-classes.git
synced 2025-12-06 18:23:57 -05:00
Fixed error with problem 2 not compiling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user