1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
1
|
1>testprb.cpp
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(26): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(36): note: see reference to function template instantiation 'T addable<T>::add<double>(U) const' being compiled
1> with
1> [
1> T=float,
1> U=double
1> ]
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(36): note: see reference to function template instantiation 'T addable<T>::add<double>(U) const' being compiled
1> with
1> [
1> T=float,
1> U=double
1> ]
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::reverse_iterator<_RanIt> std::operator +(reverse_iterator<_RanIt>::difference_type,const std::reverse_iterator<_RanIt> &)': could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const char *'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xutility(1404): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(45): note: see reference to function template instantiation 'T addable<T>::add<const char*>(U) const' being compiled
1> with
1> [
1> T=std::vector<std::string,std::allocator<std::string>>,
1> U=const char *
1> ]
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(45): note: see reference to function template instantiation 'T addable<T>::add<const char*>(U) const' being compiled
1> with
1> [
1> T=std::vector<std::string,std::allocator<std::string>>,
1> U=const char *
1> ]
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::_Array_const_iterator<_Ty,_Size> std::operator +(ptrdiff_t,std::_Array_const_iterator<_Ty,_Size>)': could not deduce template argument for 'std::_Array_const_iterator<_Ty,_Size>' from 'const char *'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xutility(1990): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::_Array_iterator<_Ty,_Size> std::operator +(ptrdiff_t,std::_Array_iterator<_Ty,_Size>)': could not deduce template argument for 'std::_Array_iterator<_Ty,_Size>' from 'const char *'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xutility(2120): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::move_iterator<_RanIt> std::operator +(move_iterator<_RanIt>::difference_type,const std::move_iterator<_RanIt> &)': could not deduce template argument for 'const std::move_iterator<_RanIt> &' from 'const char *'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xutility(2269): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::_String_view_iterator<_Traits> std::operator +(const _String_view_iterator<_Traits>::difference_type,std::_String_view_iterator<_Traits>) noexcept': could not deduce template argument for 'std::_String_view_iterator<_Traits>' from 'const char *'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring(555): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::_String_const_iterator<_Mystr> std::operator +(_String_const_iterator<_Mystr>::difference_type,std::_String_const_iterator<_Mystr>)': could not deduce template argument for 'std::_String_const_iterator<_Mystr>' from 'const char *'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring(1372): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::_String_iterator<_Mystr> std::operator +(_String_iterator<_Mystr>::difference_type,std::_String_iterator<_Mystr>)': could not deduce template argument for 'std::_String_iterator<_Mystr>' from 'const char *'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring(1490): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): 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 'const std::vector<std::string,std::allocator<_Ty>>'
1> with
1> [
1> _Ty=std::string
1> ]
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring(3727): note: see declaration of 'std::operator +'
1>c:\c++17stl\chapter01\testprb\testprb\testprb.cpp(27): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *const ,const std::basic_string<_Elem,_Traits,_Alloc> &)': could not deduce template argument for 'const _Elem *const ' from 'const |