From efa76caca8194e764cd67b7b73da247c60d0568d Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Thu, 5 Sep 2019 20:16:58 -0400 Subject: [PATCH] Fixed error with problem 2 not compiling --- Algorithms.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }