Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1>ClCompile:
- C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc110.pdb" /Gd /TP /analyze- /errorReport:prompt main.cpp
- main.cpp
- 1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\utility(26): error C2668: 'Foo::swap' : ambiguous call to overloaded function
- c:\development\learning\cplusplus\doubledispatchandvisitor\doubledispatchandvisitor\main.cpp(29): could be 'void Foo::swap<Foo::MyType>(T &,T &)' [found using argument-dependent lookup]
- with
- [
- T=Foo::MyType
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\utility(45): or 'void std::swap<Foo::MyType>(_Ty &,_Ty &)'
- with
- [
- _Ty=Foo::MyType
- ]
- while trying to match the argument list '(Foo::MyType, Foo::MyType)'
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3414) : see reference to function template instantiation 'void std::iter_swap<_RanIt,_RanIt>(_FwdIt1,_FwdIt2)' being compiled
- with
- [
- _RanIt=Foo::MyType *,
- _FwdIt1=Foo::MyType *,
- _FwdIt2=Foo::MyType *
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3428) : see reference to function template instantiation 'void std::_Rotate<_RanIt,std::iterator_traits<_Iter>::difference_type,Foo::MyType>(_RanIt,_RanIt,_RanIt,_Diff *,_Ty *)' being compiled
- with
- [
- _RanIt=Foo::MyType *,
- _Iter=Foo::MyType *,
- _Diff=std::iterator_traits<Foo::MyType *>::difference_type,
- _Ty=Foo::MyType
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3438) : see reference to function template instantiation 'void std::_Rotate<_Iter>(_RanIt,_RanIt,_RanIt,std::random_access_iterator_tag)' being compiled
- with
- [
- _Iter=Foo::MyType *,
- _RanIt=Foo::MyType *
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(1348) : see reference to function template instantiation '_FwdIt std::rotate<Foo::MyType*>(_FwdIt,_FwdIt,_FwdIt)' being compiled
- with
- [
- _FwdIt=Foo::MyType *
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(1261) : see reference to function template instantiation 'void std::vector<_Ty>::_Insert<_Iter>(std::_Vector_const_iterator<_Myvec>,_Iter,_Iter,std::forward_iterator_tag)' being compiled
- with
- [
- _Ty=Foo::MyType,
- _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>,
- _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(1261) : see reference to function template instantiation 'void std::vector<_Ty>::_Insert<_Iter>(std::_Vector_const_iterator<_Myvec>,_Iter,_Iter,std::forward_iterator_tag)' being compiled
- with
- [
- _Ty=Foo::MyType,
- _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>,
- _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(1236) : see reference to function template instantiation 'std::_Vector_iterator<_Myvec> std::vector<_Ty>::insert<_Iter>(std::_Vector_const_iterator<_Myvec>,_Iter,_Iter)' being compiled
- with
- [
- _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>,
- _Ty=Foo::MyType,
- _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(1236) : see reference to function template instantiation 'std::_Vector_iterator<_Myvec> std::vector<_Ty>::insert<_Iter>(std::_Vector_const_iterator<_Myvec>,_Iter,_Iter)' being compiled
- with
- [
- _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>,
- _Ty=Foo::MyType,
- _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(816) : see reference to function template instantiation 'void std::vector<_Ty>::assign<std::move_iterator<_RanIt>>(_Iter,_Iter)' being compiled
- with
- [
- _Ty=Foo::MyType,
- _RanIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>,
- _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(816) : see reference to function template instantiation 'void std::vector<_Ty>::assign<std::move_iterator<_RanIt>>(_Iter,_Iter)' being compiled
- with
- [
- _Ty=Foo::MyType,
- _RanIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>,
- _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
- ]
- c:\program files (x86)\microsoft visual studio 11.0\vc\include\vector(803) : while compiling class template member function 'std::vector<_Ty> &std::vector<_Ty>::operator =(std::vector<_Ty> &&)'
- with
- [
- _Ty=Foo::MyType
- ]
- c:\development\learning\cplusplus\doubledispatchandvisitor\doubledispatchandvisitor\main.cpp(62) : see reference to function template instantiation 'std::vector<_Ty> &std::vector<_Ty>::operator =(std::vector<_Ty> &&)' being compiled
- with
- [
- _Ty=Foo::MyType
- ]
- c:\development\learning\cplusplus\doubledispatchandvisitor\doubledispatchandvisitor\main.cpp(42) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
- with
- [
- _Ty=Foo::MyType
- ]
- 1>Done Building Project "C:\Development\learning\cPlusPlus\doubleDispatchAndVisitor\doubleDispatchAndVisitor\doubleDispatchAndVisitor.vcxproj" (Rebuild target(s)) -- FAILED.
- Build FAILED.
- Time Elapsed 00:00:02.01
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement