Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1>------ Build started: Project: classes, Configuration: Debug Win32 ------
- 1> main.cpp
- 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)
- 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 *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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 *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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 *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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 *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>,
- 1> _Ty=std::string
- 1> ]
- 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 &)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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> &))'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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> &))'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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 &))'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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 *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 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> *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> while trying to match the argument list '(std::ostream, std::string)'
- ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement