Advertisement
kirbyfan64sos

std vector error

Jul 7th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.75 KB | None | 0 0
  1. In file included from list.cpp:1:0:
  2. C:\C++\include/list.hpp: In instantiation of 'int list<T>::count(T) [with T = int]':
  3. list.cpp:8:28: required from here
  4. C:\C++\include/list.hpp:27:4: error: no match for 'operator==' in '((list<int>*)this)->list<int>::iter.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*<int*, std::vector<int, std::allocator<int> > >() == ((list<int>*)this)->list<int>::vect'
  5. C:\C++\include/list.hpp:27:4: note: candidates are:
  6. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:66:0,
  7. from C:\C++\include/list.hpp:2,
  8. from list.cpp:1:
  9. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stream_iterator.h:130:5: note: template<class _Tp, class _CharT, class _Traits, class _Dist> bool std::operator==(const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&, const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&)
  10. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stream_iterator.h:130:5: note: template argument deduction/substitution failed:
  11. In file included from list.cpp:1:0:
  12. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>' and 'int'
  13. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_facets.h:50:0,
  14. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_ios.h:39,
  15. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:45,
  16. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
  17. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64,
  18. from C:\C++\include/list.hpp:2,
  19. from list.cpp:1:
  20. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/streambuf_iterator.h:206:5: note: template<class _CharT, class _Traits> bool std::operator==(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)
  21. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/streambuf_iterator.h:206:5: note: template argument deduction/substitution failed:
  22. In file included from list.cpp:1:0:
  23. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::istreambuf_iterator<_CharT, _Traits>' and 'int'
  24. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0,
  25. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
  26. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
  27. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
  28. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
  29. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64,
  30. from C:\C++\include/list.hpp:2,
  31. from list.cpp:1:
  32. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2516:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
  33. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2516:5: note: template argument deduction/substitution failed:
  34. In file included from list.cpp:1:0:
  35. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'int'
  36. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0,
  37. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
  38. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
  39. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
  40. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
  41. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64,
  42. from C:\C++\include/list.hpp:2,
  43. from list.cpp:1:
  44. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2504:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
  45. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2504:5: note: template argument deduction/substitution failed:
  46. In file included from list.cpp:1:0:
  47. C:\C++\include/list.hpp:27:4: note: mismatched types 'const _CharT*' and 'int'
  48. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0,
  49. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
  50. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
  51. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
  52. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
  53. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64,
  54. from C:\C++\include/list.hpp:2,
  55. from list.cpp:1:
  56. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2490:5: note: template<class _CharT> typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(const std::basic_string<_CharT>&, const std::basic_string<_CharT>&)
  57. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2490:5: note: template argument deduction/substitution failed:
  58. In file included from list.cpp:1:0:
  59. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::basic_string<_CharT>' and 'int'
  60. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0,
  61. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
  62. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
  63. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
  64. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
  65. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64,
  66. from C:\C++\include/list.hpp:2,
  67. from list.cpp:1:
  68. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2483:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
  69. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:2483:5: note: template argument deduction/substitution failed:
  70. In file included from list.cpp:1:0:
  71. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'int'
  72. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iosfwd:42:0,
  73. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:39,
  74. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
  75. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/iterator:64,
  76. from C:\C++\include/list.hpp:2,
  77. from list.cpp:1:
  78. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/postypes.h:218:5: note: template<class _StateT> bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
  79. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/postypes.h:218:5: note: template argument deduction/substitution failed:
  80. In file included from list.cpp:1:0:
  81. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::fpos<_StateT>' and 'int'
  82. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:65:0,
  83. from C:\C++\include/list.hpp:1,
  84. from list.cpp:1:
  85. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_vector.h:1370:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
  86. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_vector.h:1370:5: note: template argument deduction/substitution failed:
  87. In file included from list.cpp:1:0:
  88. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'int'
  89. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:62:0,
  90. from C:\C++\include/list.hpp:1,
  91. from list.cpp:1:
  92. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:124:5: note: template<class _Tp> bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
  93. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:124:5: note: template argument deduction/substitution failed:
  94. In file included from list.cpp:1:0:
  95. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::allocator<_Tp1>' and 'int'
  96. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:62:0,
  97. from C:\C++\include/list.hpp:1,
  98. from list.cpp:1:
  99. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:119:5: note: template<class _T1, class _T2> bool std::operator==(const std::allocator<_T1>&, const std::allocator<_T2>&)
  100. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:119:5: note: template argument deduction/substitution failed:
  101. In file included from list.cpp:1:0:
  102. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::allocator<_T1>' and 'int'
  103. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0,
  104. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61,
  105. from C:\C++\include/list.hpp:1,
  106. from list.cpp:1:
  107. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1039:5: note: template<class _Iterator> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
  108. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1039:5: note: template argument deduction/substitution failed:
  109. In file included from list.cpp:1:0:
  110. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::move_iterator<_Iterator>' and 'int'
  111. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0,
  112. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61,
  113. from C:\C++\include/list.hpp:1,
  114. from list.cpp:1:
  115. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1033:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
  116. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:1033:5: note: template argument deduction/substitution failed:
  117. In file included from list.cpp:1:0:
  118. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
  119. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0,
  120. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61,
  121. from C:\C++\include/list.hpp:1,
  122. from list.cpp:1:
  123. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:343:5: note: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
  124. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:343:5: note: template argument deduction/substitution failed:
  125. In file included from list.cpp:1:0:
  126. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::reverse_iterator<_IteratorL>' and 'int'
  127. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0,
  128. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61,
  129. from C:\C++\include/list.hpp:1,
  130. from list.cpp:1:
  131. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:293:5: note: template<class _Iterator> bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
  132. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:293:5: note: template argument deduction/substitution failed:
  133. In file included from list.cpp:1:0:
  134. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
  135. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:65:0,
  136. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61,
  137. from C:\C++\include/list.hpp:1,
  138. from list.cpp:1:
  139. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_pair.h:212:5: note: template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
  140. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_pair.h:212:5: note: template argument deduction/substitution failed:
  141. In file included from list.cpp:1:0:
  142. C:\C++\include/list.hpp:27:4: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
  143. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/mingw32/bits/c++allocator.h:34:0,
  144. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/allocator.h:48,
  145. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:62,
  146. from C:\C++\include/list.hpp:1,
  147. from list.cpp:1:
  148. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ext/new_allocator.h:129:5: note: template<class _Tp> bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator<_Tp>&, const __gnu_cxx::new_allocator<_Tp>&)
  149. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/ext/new_allocator.h:129:5: note: template argument deduction/substitution failed:
  150. In file included from list.cpp:1:0:
  151. C:\C++\include/list.hpp:27:4: note: mismatched types 'const __gnu_cxx::new_allocator<_Tp>' and 'int'
  152. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0,
  153. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61,
  154. from C:\C++\include/list.hpp:1,
  155. from list.cpp:1:
  156. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:813:5: note: template<class _Iterator, class _Container> bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
  157. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:813:5: note: template argument deduction/substitution failed:
  158. In file included from list.cpp:1:0:
  159. C:\C++\include/list.hpp:27:4: note: mismatched types 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>' and 'int'
  160. In file included from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:68:0,
  161. from c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/vector:61,
  162. from C:\C++\include/list.hpp:1,
  163. from list.cpp:1:
  164. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:807:5: note: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
  165. c:\tdm-gcc\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_iterator.h:807:5: note: template argument deduction/substitution failed:
  166. In file included from list.cpp:1:0:
  167. C:\C++\include/list.hpp:27:4: note: mismatched types 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>' and 'int'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement