In file included from list.cpp:1:0: C:\C++\include/list.hpp: In instantiation of 'int list::count(T) [with T = int]': list.cpp:8:28: required from here C:\C++\include/list.hpp:27:4: error: no match for 'operator==' in '((list*)this)->list::iter.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* > >() == ((list*)this)->list::vect' C:\C++\include/list.hpp:27:4: note: candidates are: In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:66:0, from C:\C++\include/list.hpp:2, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stream_iterator.h:130:5: note: template bool std::operator==(const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&, const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stream_iterator.h:130:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_facets.h:50:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_ios.h:39, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:45, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64, from C:\C++\include/list.hpp:2, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/streambuf_iterator.h:206:5: note: template bool std::operator==(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/streambuf_iterator.h:206:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::istreambuf_iterator<_CharT, _Traits>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64, from C:\C++\include/list.hpp:2, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2516:5: note: template bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2516:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64, from C:\C++\include/list.hpp:2, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2504:5: note: template bool std::operator==(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2504:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const _CharT*' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64, from C:\C++\include/list.hpp:2, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2490:5: note: template typename __gnu_cxx::__enable_if::__value, bool>::__type std::operator==(const std::basic_string<_CharT>&, const std::basic_string<_CharT>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2490:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::basic_string<_CharT>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64, from C:\C++\include/list.hpp:2, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2483:5: note: template bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2483:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iosfwd:42:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:39, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64, from C:\C++\include/list.hpp:2, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/postypes.h:218:5: note: template bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/postypes.h:218:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::fpos<_StateT>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:65:0, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_vector.h:1370:5: note: template bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_vector.h:1370:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:62:0, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:124:5: note: template bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:124:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::allocator<_Tp1>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:62:0, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:119:5: note: template bool std::operator==(const std::allocator<_T1>&, const std::allocator<_T2>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:119:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::allocator<_T1>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1039:5: note: template bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1039:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::move_iterator<_Iterator>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1033:5: note: template bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1033:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:343:5: note: template bool std::operator==(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:343:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::reverse_iterator<_IteratorL>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:293:5: note: template bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:293:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:65:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_pair.h:212:5: note: template constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_pair.h:212:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::pair<_T1, _T2>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/mingw32/bits/c++allocator.h:34:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:48, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:62, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ext/new_allocator.h:129:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator<_Tp>&, const __gnu_cxx::new_allocator<_Tp>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ext/new_allocator.h:129:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const __gnu_cxx::new_allocator<_Tp>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:813:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:813:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>' and 'int' In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0, from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61, from C:\C++\include/list.hpp:1, from list.cpp:1: c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:807:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&) c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:807:5: note: template argument deduction/substitution failed: In file included from list.cpp:1:0: C:\C++\include/list.hpp:27:4: note: mismatched types 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>' and 'int'