Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.15 KB | None | 0 0
  1. ⋊> ~/w/p/cpp on master ⨯ make clean; make; ./test 17:11:43
  2. rm -f test.o
  3. g++ -c -o test.o test.cpp
  4. test.cpp: In function ‘int main()’:
  5. test.cpp:8:15: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘Str’)
  6. std::cout << sc << "\n";
  7. ~~~~~~~~~~^~~~~
  8. In file included from /usr/include/c++/7/iostream:39:0,
  9. from Str.h:1,
  10. from test.cpp:1:
  11. /usr/include/c++/7/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  12. operator<<(__ostream_type& (*__pf)(__ostream_type&))
  13. ^~~~~~~~
  14. /usr/include/c++/7/ostream:108:7: note: no known conversion for argument 1 from ‘Str’ to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}’
  15. /usr/include/c++/7/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
  16. operator<<(__ios_type& (*__pf)(__ios_type&))
  17. ^~~~~~~~
  18. /usr/include/c++/7/ostream:117:7: note: no known conversion for argument 1 from ‘Str’ to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
  19. /usr/include/c++/7/ostream:127:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  20. operator<<(ios_base& (*__pf) (ios_base&))
  21. ^~~~~~~~
  22. /usr/include/c++/7/ostream:127:7: note: no known conversion for argument 1 from ‘Str’ to ‘std::ios_base& (*)(std::ios_base&)’
  23. /usr/include/c++/7/ostream:166:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  24. operator<<(long __n)
  25. ^~~~~~~~
  26. /usr/include/c++/7/ostream:166:7: note: no known conversion for argument 1 from ‘Str’ to ‘long int’
  27. /usr/include/c++/7/ostream:170:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  28. operator<<(unsigned long __n)
  29. ^~~~~~~~
  30. /usr/include/c++/7/ostream:170:7: note: no known conversion for argument 1 from ‘Str’ to ‘long unsigned int’
  31. /usr/include/c++/7/ostream:174:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  32. operator<<(bool __n)
  33. ^~~~~~~~
  34. /usr/include/c++/7/ostream:174:7: note: no known conversion for argument 1 from ‘Str’ to ‘bool’
  35. In file included from /usr/include/c++/7/ostream:693:0,
  36. from /usr/include/c++/7/iostream:39,
  37. from Str.h:1,
  38. from test.cpp:1:
  39. /usr/include/c++/7/bits/ostream.tcc:91:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
  40. basic_ostream<_CharT, _Traits>::
  41. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. /usr/include/c++/7/bits/ostream.tcc:91:5: note: no known conversion for argument 1 from ‘Str’ to ‘short int’
  43. In file included from /usr/include/c++/7/iostream:39:0,
  44. from Str.h:1,
  45. from test.cpp:1:
  46. /usr/include/c++/7/ostream:181:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  47. operator<<(unsigned short __n)
  48. ^~~~~~~~
  49. /usr/include/c++/7/ostream:181:7: note: no known conversion for argument 1 from ‘Str’ to ‘short unsigned int’
  50. In file included from /usr/include/c++/7/ostream:693:0,
  51. from /usr/include/c++/7/iostream:39,
  52. from Str.h:1,
  53. from test.cpp:1:
  54. /usr/include/c++/7/bits/ostream.tcc:105:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
  55. basic_ostream<_CharT, _Traits>::
  56. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. /usr/include/c++/7/bits/ostream.tcc:105:5: note: no known conversion for argument 1 from ‘Str’ to ‘int’
  58. In file included from /usr/include/c++/7/iostream:39:0,
  59. from Str.h:1,
  60. from test.cpp:1:
  61. /usr/include/c++/7/ostream:192:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  62. operator<<(unsigned int __n)
  63. ^~~~~~~~
  64. /usr/include/c++/7/ostream:192:7: note: no known conversion for argument 1 from ‘Str’ to ‘unsigned int’
  65. /usr/include/c++/7/ostream:201:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits= std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  66. operator<<(long long __n)
  67. ^~~~~~~~
  68. /usr/include/c++/7/ostream:201:7: note: no known conversion for argument 1 from ‘Str’ to ‘long long int’
  69. /usr/include/c++/7/ostream:205:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  70. operator<<(unsigned long long __n)
  71. ^~~~~~~~
  72. /usr/include/c++/7/ostream:205:7: note: no known conversion for argument 1 from ‘Str’ to ‘long long unsigned int’
  73. /usr/include/c++/7/ostream:220:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  74. operator<<(double __f)
  75. ^~~~~~~~
  76. /usr/include/c++/7/ostream:220:7: note: no known conversion for argument 1 from ‘Str’ to ‘double’
  77. /usr/include/c++/7/ostream:224:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  78. operator<<(float __f)
  79. ^~~~~~~~
  80. /usr/include/c++/7/ostream:224:7: note: no known conversion for argument 1 from ‘Str’ to ‘float’
  81. /usr/include/c++/7/ostream:232:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits =std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  82. operator<<(long double __f)
  83. ^~~~~~~~
  84. /usr/include/c++/7/ostream:232:7: note: no known conversion for argument 1 from ‘Str’ to ‘long double’
  85. /usr/include/c++/7/ostream:245:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits =std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  86. operator<<(const void* __p)
  87. ^~~~~~~~
  88. /usr/include/c++/7/ostream:245:7: note: no known conversion for argument 1 from ‘Str’ to ‘const void*’
  89. In file included from /usr/include/c++/7/ostream:693:0,
  90. from /usr/include/c++/7/iostream:39,
  91. from Str.h:1,
  92. from test.cpp:1:
  93. /usr/include/c++/7/bits/ostream.tcc:119:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
  94. basic_ostream<_CharT, _Traits>::
  95. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  96. /usr/include/c++/7/bits/ostream.tcc:119:5: note: no known conversion for argument 1 from ‘Str’ to ‘std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
  97. In file included from /usr/include/c++/7/string:52:0,
  98. from /usr/include/c++/7/bits/locale_classes.h:40,
  99. from /usr/include/c++/7/bits/ios_base.h:41,
  100. from /usr/include/c++/7/ios:42,
  101. from /usr/include/c++/7/ostream:38,
  102. from /usr/include/c++/7/iostream:39,
  103. from Str.h:1,
  104. from test.cpp:1:
  105. /usr/include/c++/7/bits/basic_string.h:6272:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT,_Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
  106. operator<<(basic_ostream<_CharT, _Traits>& __os,
  107. ^~~~~~~~
  108. /usr/include/c++/7/bits/basic_string.h:6272:5: note: template argument deduction/substitution failed:
  109. test.cpp:8:18: note: ‘Str’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
  110. std::cout << sc << "\n";
  111. ^~
  112. In file included from /usr/include/c++/7/bits/ios_base.h:46:0,
  113. from /usr/include/c++/7/ios:42,
  114. from /usr/include/c++/7/ostream:38,
  115. from /usr/include/c++/7/iostream:39,
  116. from Str.h:1,
  117. from test.cpp:1:
  118. /usr/include/c++/7/system_error:217:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
  119. operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
  120. ^~~~~~~~
  121. /usr/include/c++/7/system_error:217:5: note: template argument deduction/substitution failed:
  122. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const std::error_code&’
  123. std::cout << sc << "\n";
  124. ^~
  125. In file included from /usr/include/c++/7/iostream:39:0,
  126. from Str.h:1,
  127. from test.cpp:1:
  128. /usr/include/c++/7/ostream:497:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
  129. operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
  130. ^~~~~~~~
  131. /usr/include/c++/7/ostream:497:5: note: template argument deduction/substitution failed:
  132. test.cpp:8:18: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘Str’)
  133. std::cout << sc << "\n";
  134. ^~
  135. In file included from /usr/include/c++/7/iostream:39:0,
  136. from Str.h:1,
  137. from test.cpp:1:
  138. /usr/include/c++/7/ostream:502:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
  139. operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
  140. ^~~~~~~~
  141. /usr/include/c++/7/ostream:502:5: note: template argument deduction/substitution failed:
  142. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘char’
  143. std::cout << sc << "\n";
  144. ^~
  145. In file included from /usr/include/c++/7/iostream:39:0,
  146. from Str.h:1,
  147. from test.cpp:1:
  148. /usr/include/c++/7/ostream:508:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
  149. operator<<(basic_ostream<char, _Traits>& __out, char __c)
  150. ^~~~~~~~
  151. /usr/include/c++/7/ostream:508:5: note: template argument deduction/substitution failed:
  152. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘char’
  153. std::cout << sc << "\n";
  154. ^~
  155. In file included from /usr/include/c++/7/iostream:39:0,
  156. from Str.h:1,
  157. from test.cpp:1:
  158. /usr/include/c++/7/ostream:514:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
  159. operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
  160. ^~~~~~~~
  161. /usr/include/c++/7/ostream:514:5: note: template argument deduction/substitution failed:
  162. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘signed char’
  163. std::cout << sc << "\n";
  164. ^~
  165. In file included from /usr/include/c++/7/iostream:39:0,
  166. from Str.h:1,
  167. from test.cpp:1:
  168. /usr/include/c++/7/ostream:519:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
  169. operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
  170. ^~~~~~~~
  171. /usr/include/c++/7/ostream:519:5: note: template argument deduction/substitution failed:
  172. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘unsigned char’
  173. std::cout << sc << "\n";
  174. ^~
  175. In file included from /usr/include/c++/7/iostream:39:0,
  176. from Str.h:1,
  177. from test.cpp:1:
  178. /usr/include/c++/7/ostream:539:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)
  179. operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
  180. ^~~~~~~~
  181. /usr/include/c++/7/ostream:539:5: note: template argument deduction/substitution failed:
  182. test.cpp:8:18: note: mismatched types ‘const _CharT*’ and ‘Str’
  183. std::cout << sc << "\n";
  184. ^~
  185. In file included from /usr/include/c++/7/ostream:693:0,
  186. from /usr/include/c++/7/iostream:39,
  187. from Str.h:1,
  188. from test.cpp:1:
  189. /usr/include/c++/7/bits/ostream.tcc:321:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
  190. operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
  191. ^~~~~~~~
  192. /usr/include/c++/7/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
  193. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const char*’
  194. std::cout << sc << "\n";
  195. ^~
  196. In file included from /usr/include/c++/7/iostream:39:0,
  197. from Str.h:1,
  198. from test.cpp:1:
  199. /usr/include/c++/7/ostream:556:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
  200. operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
  201. ^~~~~~~~
  202. /usr/include/c++/7/ostream:556:5: note: template argument deduction/substitution failed:
  203. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const char*’
  204. std::cout << sc << "\n";
  205. ^~
  206. In file included from /usr/include/c++/7/iostream:39:0,
  207. from Str.h:1,
  208. from test.cpp:1:
  209. /usr/include/c++/7/ostream:569:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
  210. operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
  211. ^~~~~~~~
  212. /usr/include/c++/7/ostream:569:5: note: template argument deduction/substitution failed:
  213. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const signed char*’
  214. std::cout << sc << "\n";
  215. ^~
  216. In file included from /usr/include/c++/7/iostream:39:0,
  217. from Str.h:1,
  218. from test.cpp:1:
  219. /usr/include/c++/7/ostream:574:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
  220. operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
  221. ^~~~~~~~
  222. /usr/include/c++/7/ostream:574:5: note: template argument deduction/substitution failed:
  223. test.cpp:8:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const unsigned char*’
  224. std::cout << sc << "\n";
  225. ^~
  226. In file included from /usr/include/c++/7/iostream:39:0,
  227. from Str.h:1,
  228. from test.cpp:1:
  229. /usr/include/c++/7/ostream:682:5: note: candidate: template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&)
  230. operator<<(_Ostream&& __os, const _Tp& __x)
  231. ^~~~~~~~
  232. /usr/include/c++/7/ostream:682:5: note: template argument deduction/substitution failed:
  233. /usr/include/c++/7/ostream: In substitution of ‘template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_ostream<char>&; _Tp = Str]’:
  234. test.cpp:8:18: required from here
  235. /usr/include/c++/7/ostream:682:5: error: no type named ‘type’ in ‘struct std::enable_if<false, std::basic_ostream<char>&>’
  236. test.cpp:10:15: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘Str’)
  237. std::cout << sc << "\n";
  238. ~~~~~~~~~~^~~~~
  239. In file included from /usr/include/c++/7/iostream:39:0,
  240. from Str.h:1,
  241. from test.cpp:1:
  242. /usr/include/c++/7/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  243. operator<<(__ostream_type& (*__pf)(__ostream_type&))
  244. ^~~~~~~~
  245. /usr/include/c++/7/ostream:108:7: note: no known conversion for argument 1 from ‘Str’ to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}’
  246. /usr/include/c++/7/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
  247. operator<<(__ios_type& (*__pf)(__ios_type&))
  248. ^~~~~~~~
  249. /usr/include/c++/7/ostream:117:7: note: no known conversion for argument 1 from ‘Str’ to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
  250. /usr/include/c++/7/ostream:127:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  251. operator<<(ios_base& (*__pf) (ios_base&))
  252. ^~~~~~~~
  253. /usr/include/c++/7/ostream:127:7: note: no known conversion for argument 1 from ‘Str’ to ‘std::ios_base& (*)(std::ios_base&)’
  254. /usr/include/c++/7/ostream:166:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  255. operator<<(long __n)
  256. ^~~~~~~~
  257. /usr/include/c++/7/ostream:166:7: note: no known conversion for argument 1 from ‘Str’ to ‘long int’
  258. /usr/include/c++/7/ostream:170:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  259. operator<<(unsigned long __n)
  260. ^~~~~~~~
  261. /usr/include/c++/7/ostream:170:7: note: no known conversion for argument 1 from ‘Str’ to ‘long unsigned int’
  262. /usr/include/c++/7/ostream:174:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  263. operator<<(bool __n)
  264. ^~~~~~~~
  265. /usr/include/c++/7/ostream:174:7: note: no known conversion for argument 1 from ‘Str’ to ‘bool’
  266. In file included from /usr/include/c++/7/ostream:693:0,
  267. from /usr/include/c++/7/iostream:39,
  268. from Str.h:1,
  269. from test.cpp:1:
  270. /usr/include/c++/7/bits/ostream.tcc:91:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
  271. basic_ostream<_CharT, _Traits>::
  272. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  273. /usr/include/c++/7/bits/ostream.tcc:91:5: note: no known conversion for argument 1 from ‘Str’ to ‘short int’
  274. In file included from /usr/include/c++/7/iostream:39:0,
  275. from Str.h:1,
  276. from test.cpp:1:
  277. /usr/include/c++/7/ostream:181:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  278. operator<<(unsigned short __n)
  279. ^~~~~~~~
  280. /usr/include/c++/7/ostream:181:7: note: no known conversion for argument 1 from ‘Str’ to ‘short unsigned int’
  281. In file included from /usr/include/c++/7/ostream:693:0,
  282. from /usr/include/c++/7/iostream:39,
  283. from Str.h:1,
  284. from test.cpp:1:
  285. /usr/include/c++/7/bits/ostream.tcc:105:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
  286. basic_ostream<_CharT, _Traits>::
  287. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  288. /usr/include/c++/7/bits/ostream.tcc:105:5: note: no known conversion for argument 1 from ‘Str’ to ‘int’
  289. In file included from /usr/include/c++/7/iostream:39:0,
  290. from Str.h:1,
  291. from test.cpp:1:
  292. /usr/include/c++/7/ostream:192:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  293. operator<<(unsigned int __n)
  294. ^~~~~~~~
  295. /usr/include/c++/7/ostream:192:7: note: no known conversion for argument 1 from ‘Str’ to ‘unsigned int’
  296. /usr/include/c++/7/ostream:201:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits= std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  297. operator<<(long long __n)
  298. ^~~~~~~~
  299. /usr/include/c++/7/ostream:201:7: note: no known conversion for argument 1 from ‘Str’ to ‘long long int’
  300. /usr/include/c++/7/ostream:205:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  301. operator<<(unsigned long long __n)
  302. ^~~~~~~~
  303. /usr/include/c++/7/ostream:205:7: note: no known conversion for argument 1 from ‘Str’ to ‘long long unsigned int’
  304. /usr/include/c++/7/ostream:220:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  305. operator<<(double __f)
  306. ^~~~~~~~
  307. /usr/include/c++/7/ostream:220:7: note: no known conversion for argument 1 from ‘Str’ to ‘double’
  308. /usr/include/c++/7/ostream:224:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  309. operator<<(float __f)
  310. ^~~~~~~~
  311. /usr/include/c++/7/ostream:224:7: note: no known conversion for argument 1 from ‘Str’ to ‘float’
  312. /usr/include/c++/7/ostream:232:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits =std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  313. operator<<(long double __f)
  314. ^~~~~~~~
  315. /usr/include/c++/7/ostream:232:7: note: no known conversion for argument 1 from ‘Str’ to ‘long double’
  316. /usr/include/c++/7/ostream:245:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits =std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
  317. operator<<(const void* __p)
  318. ^~~~~~~~
  319. /usr/include/c++/7/ostream:245:7: note: no known conversion for argument 1 from ‘Str’ to ‘const void*’
  320. In file included from /usr/include/c++/7/ostream:693:0,
  321. from /usr/include/c++/7/iostream:39,
  322. from Str.h:1,
  323. from test.cpp:1:
  324. /usr/include/c++/7/bits/ostream.tcc:119:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
  325. basic_ostream<_CharT, _Traits>::
  326. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  327. /usr/include/c++/7/bits/ostream.tcc:119:5: note: no known conversion for argument 1 from ‘Str’ to ‘std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
  328. In file included from /usr/include/c++/7/string:52:0,
  329. from /usr/include/c++/7/bits/locale_classes.h:40,
  330. from /usr/include/c++/7/bits/ios_base.h:41,
  331. from /usr/include/c++/7/ios:42,
  332. from /usr/include/c++/7/ostream:38,
  333. from /usr/include/c++/7/iostream:39,
  334. from Str.h:1,
  335. from test.cpp:1:
  336. /usr/include/c++/7/bits/basic_string.h:6272:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT,_Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
  337. operator<<(basic_ostream<_CharT, _Traits>& __os,
  338. ^~~~~~~~
  339. /usr/include/c++/7/bits/basic_string.h:6272:5: note: template argument deduction/substitution failed:
  340. test.cpp:10:18: note: ‘Str’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
  341. std::cout << sc << "\n";
  342. ^~
  343. In file included from /usr/include/c++/7/bits/ios_base.h:46:0,
  344. from /usr/include/c++/7/ios:42,
  345. from /usr/include/c++/7/ostream:38,
  346. from /usr/include/c++/7/iostream:39,
  347. from Str.h:1,
  348. from test.cpp:1:
  349. /usr/include/c++/7/system_error:217:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
  350. operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
  351. ^~~~~~~~
  352. /usr/include/c++/7/system_error:217:5: note: template argument deduction/substitution failed:
  353. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const std::error_code&’
  354. std::cout << sc << "\n";
  355. ^~
  356. In file included from /usr/include/c++/7/iostream:39:0,
  357. from Str.h:1,
  358. from test.cpp:1:
  359. /usr/include/c++/7/ostream:497:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
  360. operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
  361. ^~~~~~~~
  362. /usr/include/c++/7/ostream:497:5: note: template argument deduction/substitution failed:
  363. test.cpp:10:18: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘Str’)
  364. std::cout << sc << "\n";
  365. ^~
  366. In file included from /usr/include/c++/7/iostream:39:0,
  367. from Str.h:1,
  368. from test.cpp:1:
  369. /usr/include/c++/7/ostream:502:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
  370. operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
  371. ^~~~~~~~
  372. /usr/include/c++/7/ostream:502:5: note: template argument deduction/substitution failed:
  373. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘char’
  374. std::cout << sc << "\n";
  375. ^~
  376. In file included from /usr/include/c++/7/iostream:39:0,
  377. from Str.h:1,
  378. from test.cpp:1:
  379. /usr/include/c++/7/ostream:508:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
  380. operator<<(basic_ostream<char, _Traits>& __out, char __c)
  381. ^~~~~~~~
  382. /usr/include/c++/7/ostream:508:5: note: template argument deduction/substitution failed:
  383. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘char’
  384. std::cout << sc << "\n";
  385. ^~
  386. In file included from /usr/include/c++/7/iostream:39:0,
  387. from Str.h:1,
  388. from test.cpp:1:
  389. /usr/include/c++/7/ostream:514:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
  390. operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
  391. ^~~~~~~~
  392. /usr/include/c++/7/ostream:514:5: note: template argument deduction/substitution failed:
  393. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘signed char’
  394. std::cout << sc << "\n";
  395. ^~
  396. In file included from /usr/include/c++/7/iostream:39:0,
  397. from Str.h:1,
  398. from test.cpp:1:
  399. /usr/include/c++/7/ostream:519:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
  400. operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
  401. ^~~~~~~~
  402. /usr/include/c++/7/ostream:519:5: note: template argument deduction/substitution failed:
  403. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘unsigned char’
  404. std::cout << sc << "\n";
  405. ^~
  406. In file included from /usr/include/c++/7/iostream:39:0,
  407. from Str.h:1,
  408. from test.cpp:1:
  409. /usr/include/c++/7/ostream:539:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)
  410. operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
  411. ^~~~~~~~
  412. /usr/include/c++/7/ostream:539:5: note: template argument deduction/substitution failed:
  413. test.cpp:10:18: note: mismatched types ‘const _CharT*’ and ‘Str’
  414. std::cout << sc << "\n";
  415. ^~
  416. In file included from /usr/include/c++/7/ostream:693:0,
  417. from /usr/include/c++/7/iostream:39,
  418. from Str.h:1,
  419. from test.cpp:1:
  420. /usr/include/c++/7/bits/ostream.tcc:321:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
  421. operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
  422. ^~~~~~~~
  423. /usr/include/c++/7/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
  424. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const char*’
  425. std::cout << sc << "\n";
  426. ^~
  427. In file included from /usr/include/c++/7/iostream:39:0,
  428. from Str.h:1,
  429. from test.cpp:1:
  430. /usr/include/c++/7/ostream:556:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
  431. operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
  432. ^~~~~~~~
  433. /usr/include/c++/7/ostream:556:5: note: template argument deduction/substitution failed:
  434. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const char*’
  435. std::cout << sc << "\n";
  436. ^~
  437. In file included from /usr/include/c++/7/iostream:39:0,
  438. from Str.h:1,
  439. from test.cpp:1:
  440. /usr/include/c++/7/ostream:569:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
  441. operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
  442. ^~~~~~~~
  443. /usr/include/c++/7/ostream:569:5: note: template argument deduction/substitution failed:
  444. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const signed char*’
  445. std::cout << sc << "\n";
  446. ^~
  447. In file included from /usr/include/c++/7/iostream:39:0,
  448. from Str.h:1,
  449. from test.cpp:1:
  450. /usr/include/c++/7/ostream:574:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
  451. operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
  452. ^~~~~~~~
  453. /usr/include/c++/7/ostream:574:5: note: template argument deduction/substitution failed:
  454. test.cpp:10:18: note: cannot convert ‘sc’ (type ‘Str’) to type ‘const unsigned char*’
  455. std::cout << sc << "\n";
  456. ^~
  457. In file included from /usr/include/c++/7/iostream:39:0,
  458. from Str.h:1,
  459. from test.cpp:1:
  460. /usr/include/c++/7/ostream:682:5: note: candidate: template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&)
  461. operator<<(_Ostream&& __os, const _Tp& __x)
  462. ^~~~~~~~
  463. /usr/include/c++/7/ostream:682:5: note: template argument deduction/substitution failed:
  464. /usr/include/c++/7/ostream: In substitution of ‘template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_ostream<char>&; _Tp = Str]’:
  465. test.cpp:10:18: required from here
  466. /usr/include/c++/7/ostream:682:5: error: no type named ‘type’ in ‘struct std::enable_if<false, std::basic_ostream<char>&>’
  467. <builtin>: recipe for target 'test.o' failed
  468. make: *** [test.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement