用VS2010验证一个小错误,居然给了我好长一段报告 - -
c++吧
全部回复
仅看楼主
level 5
koko2015 楼主
这是BUG吧...
2010年04月16日 11点04分 1
level 11

2010年04月16日 11点04分 2
level 5
koko2015 楼主
发不出来……系统说我回帖太长了,需要审核 - -|||
我还分了2个发的。。。
2010年04月16日 11点04分 3
level 5
koko2015 楼主
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(99) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(99) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(89) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 4
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(89) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(89) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(89) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 5
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(89) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(75) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(75) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 6
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(75) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(75) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(75) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 7
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(61) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(61) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(61) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 8
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(61) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(61) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(47) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const _Elem *' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [

2010年04月16日 14点04分 9
level 5
koko2015 楼主
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(33) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(19) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(19) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 10
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(19) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(19) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(19) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_Vb_iterator<_Alloc> std::operator +(_Alloc::difference_type,std::_Vb_iterator<_Alloc>)' : could not deduce template argument for 'std::_Vb_iterator<_Alloc>' from 'int'

2010年04月16日 14点04分 11
level 5
koko2015 楼主
1>          d:\program files\microsoft visual studio 10.0\vc\include\vector(1985) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_Vb_const_iterator<_Alloc> std::operator +(_Alloc::difference_type,std::_Vb_const_iterator<_Alloc>)' : could not deduce template argument for 'std::_Vb_const_iterator<_Alloc>' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\vector(1878) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_Vector_iterator<_Myvec> std::operator +(_Vector_iterator<_Myvec>::difference_type,std::_Vector_iterator<_Myvec>)' : could not deduce template argument for 'std::_Vector_iterator<_Myvec>' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\vector(407) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_Vector_const_iterator<_Myvec> std::operator +(_Vector_const_iterator<_Myvec>::difference_type,std::_Vector_const_iterator<_Myvec>)' : could not deduce template argument for 'std::_Vector_const_iterator<_Myvec>' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\vector(276) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_String_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_iterator<_Elem,_Traits,_Alloc>' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\xstring(434) : see declaration of 'std::operator +'

2010年04月16日 14点04分 12
level 5
koko2015 楼主
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_String_const_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_const_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_const_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_const_iterator<_Elem,_Traits,_Alloc>' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\xstring(293) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_Array_iterator<_Ty,_Size> std::operator +(_Array_iterator<_Ty,_Size>::difference_type,std::_Array_iterator<_Ty,_Size>)' : could not deduce template argument for 'std::_Array_iterator<_Ty,_Size>' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\xutility(2068) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_Array_const_iterator<_Ty,_Size> std::operator +(_Array_const_iterator<_Ty,_Size>::difference_type,std::_Array_const_iterator<_Ty,_Size>)' : could not deduce template argument for 'std::_Array_const_iterator<_Ty,_Size>' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\xutility(1929) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::reverse_iterator<_RanIt> std::operator +(_Diff,const std::reverse_iterator<_RanIt> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\xutility(1323) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::_Revranit<_RanIt,_Base> std::operator +(_Diff,const std::_Revranit<_RanIt,_Base> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\xutility(1136) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2676: binary '+' : 'std::_List_iterator<_Mylist>' does not define this operator or a conversion to a type acceptable to the predefined operator
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.95
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
2010年04月16日 14点04分 13
level 5
koko2015 楼主
list<int>::iterator it2 = ilist.begin() + 2;
1>------ Build started: Project: 9_10, Configuration: Debug Win32 ------
1>Build started 2010-4-16 19:29:01.
1>InitializeBuildStatus:
1>  Creating "Debug\9_10.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  9_10.cpp
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(153) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(153) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 14
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(153) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(153) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(153) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 15
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(143) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(143) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(143) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 16
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(143) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(143) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'int'
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(133) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'const _Elem *' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>

2010年04月16日 14点04分 17
level 5
koko2015 楼主
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(123) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(109) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(109) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 18
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(109) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(109) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(109) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'

2010年04月16日 14点04分 19
level 5
koko2015 楼主
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(99) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(99) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
1>          d:\program files\microsoft visual studio 10.0\vc\include\string(99) : see declaration of 'std::operator +'
1>d:\program files\microsoft visual studio\myprojects\cpp\chapter 9\9_10\9_10\9_10.cpp(16): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'std::_List_iterator<_Mylist>'
1>          with
1>          [
1>              _Mylist=std::_List_val<int,std::allocator<int>>
1>          ]
2010年04月16日 14点04分 20
1 2 尾页