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