In file included from main.cpp:16:0:
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = int; Iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >]':
main.cpp:48:55: required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
typename std::iterator_traits<Iterator>::iterator_category cat;
^~~
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = Test; Iterator = __gnu_cxx::__normal_iterator<Test*, std::vector<Test> >]':
main.cpp:67:63: required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = int; Iterator = std::_List_iterator<int>]':
main.cpp:83:57: required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = Test; Iterator = std::_List_iterator<Test>]':
main.cpp:101:63: required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
cc1plus: all warnings being treated as errors
|