Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.30 KB | None | 0 0
  1. 1>------ Build started: Project: classes, Configuration: Debug Win32 ------
  2. 1> main.cpp
  3. 1>c:\users\shawn\documents\visual studio 2010\projects\classes\classes\main.cpp(31): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
  4. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(679): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)'
  5. 1> with
  6. 1> [
  7. 1> _Elem=char,
  8. 1> _Traits=std::char_traits<char>
  9. 1> ]
  10. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(726): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)'
  11. 1> with
  12. 1> [
  13. 1> _Elem=char,
  14. 1> _Traits=std::char_traits<char>
  15. 1> ]
  16. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(764): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)'
  17. 1> with
  18. 1> [
  19. 1> _Elem=char,
  20. 1> _Traits=std::char_traits<char>
  21. 1> ]
  22. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(811): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)'
  23. 1> with
  24. 1> [
  25. 1> _Elem=char,
  26. 1> _Traits=std::char_traits<char>
  27. 1> ]
  28. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(937): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const signed char *)'
  29. 1> with
  30. 1> [
  31. 1> _Elem=char,
  32. 1> _Traits=std::char_traits<char>
  33. 1> ]
  34. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(944): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,signed char)'
  35. 1> with
  36. 1> [
  37. 1> _Elem=char,
  38. 1> _Traits=std::char_traits<char>
  39. 1> ]
  40. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(951): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)'
  41. 1> with
  42. 1> [
  43. 1> _Elem=char,
  44. 1> _Traits=std::char_traits<char>
  45. 1> ]
  46. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(958): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,unsigned char)'
  47. 1> with
  48. 1> [
  49. 1> _Elem=char,
  50. 1> _Traits=std::char_traits<char>
  51. 1> ]
  52. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(968): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>,std::string>(std::basic_ostream<_Elem,_Traits> &&,_Ty)'
  53. 1> with
  54. 1> [
  55. 1> _Elem=char,
  56. 1> _Traits=std::char_traits<char>,
  57. 1> _Ty=std::string
  58. 1> ]
  59. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(1085): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const std::error_code &)'
  60. 1> with
  61. 1> [
  62. 1> _Elem=char,
  63. 1> _Traits=std::char_traits<char>
  64. 1> ]
  65. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(186): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))'
  66. 1> with
  67. 1> [
  68. 1> _Elem=char,
  69. 1> _Traits=std::char_traits<char>
  70. 1> ]
  71. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(192): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))'
  72. 1> with
  73. 1> [
  74. 1> _Elem=char,
  75. 1> _Traits=std::char_traits<char>
  76. 1> ]
  77. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(199): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))'
  78. 1> with
  79. 1> [
  80. 1> _Elem=char,
  81. 1> _Traits=std::char_traits<char>
  82. 1> ]
  83. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(206): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)'
  84. 1> with
  85. 1> [
  86. 1> _Elem=char,
  87. 1> _Traits=std::char_traits<char>
  88. 1> ]
  89. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(226): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)'
  90. 1> with
  91. 1> [
  92. 1> _Elem=char,
  93. 1> _Traits=std::char_traits<char>
  94. 1> ]
  95. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(260): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)'
  96. 1> with
  97. 1> [
  98. 1> _Elem=char,
  99. 1> _Traits=std::char_traits<char>
  100. 1> ]
  101. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(280): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(int)'
  102. 1> with
  103. 1> [
  104. 1> _Elem=char,
  105. 1> _Traits=std::char_traits<char>
  106. 1> ]
  107. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(305): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned int)'
  108. 1> with
  109. 1> [
  110. 1> _Elem=char,
  111. 1> _Traits=std::char_traits<char>
  112. 1> ]
  113. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(325): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)'
  114. 1> with
  115. 1> [
  116. 1> _Elem=char,
  117. 1> _Traits=std::char_traits<char>
  118. 1> ]
  119. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(345): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned long)'
  120. 1> with
  121. 1> [
  122. 1> _Elem=char,
  123. 1> _Traits=std::char_traits<char>
  124. 1> ]
  125. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(366): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)'
  126. 1> with
  127. 1> [
  128. 1> _Elem=char,
  129. 1> _Traits=std::char_traits<char>
  130. 1> ]
  131. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(386): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)'
  132. 1> with
  133. 1> [
  134. 1> _Elem=char,
  135. 1> _Traits=std::char_traits<char>
  136. 1> ]
  137. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(407): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)'
  138. 1> with
  139. 1> [
  140. 1> _Elem=char,
  141. 1> _Traits=std::char_traits<char>
  142. 1> ]
  143. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(427): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)'
  144. 1> with
  145. 1> [
  146. 1> _Elem=char,
  147. 1> _Traits=std::char_traits<char>
  148. 1> ]
  149. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(447): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)'
  150. 1> with
  151. 1> [
  152. 1> _Elem=char,
  153. 1> _Traits=std::char_traits<char>
  154. 1> ]
  155. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(467): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)'
  156. 1> with
  157. 1> [
  158. 1> _Elem=char,
  159. 1> _Traits=std::char_traits<char>
  160. 1> ]
  161. 1> c:\program files\microsoft visual studio 10.0\vc\include\ostream(487): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)'
  162. 1> with
  163. 1> [
  164. 1> _Elem=char,
  165. 1> _Traits=std::char_traits<char>
  166. 1> ]
  167. 1> while trying to match the argument list '(std::ostream, std::string)'
  168. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement