Advertisement
Guest User

errorADL

a guest
Mar 22nd, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. 1>ClCompile:
  2. 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
  3. main.cpp
  4. 1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\utility(26): error C2668: 'Foo::swap' : ambiguous call to overloaded function
  5. c:\development\learning\cplusplus\doubledispatchandvisitor\doubledispatchandvisitor\main.cpp(29): could be 'void Foo::swap<Foo::MyType>(T &,T &)' [found using argument-dependent lookup]
  6. with
  7. [
  8. T=Foo::MyType
  9. ]
  10. c:\program files (x86)\microsoft visual studio 11.0\vc\include\utility(45): or 'void std::swap<Foo::MyType>(_Ty &,_Ty &)'
  11. with
  12. [
  13. _Ty=Foo::MyType
  14. ]
  15. while trying to match the argument list '(Foo::MyType, Foo::MyType)'
  16. 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
  17. with
  18. [
  19. _RanIt=Foo::MyType *,
  20. _FwdIt1=Foo::MyType *,
  21. _FwdIt2=Foo::MyType *
  22. ]
  23. 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
  24. with
  25. [
  26. _RanIt=Foo::MyType *,
  27. _Iter=Foo::MyType *,
  28. _Diff=std::iterator_traits<Foo::MyType *>::difference_type,
  29. _Ty=Foo::MyType
  30. ]
  31. 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
  32. with
  33. [
  34. _Iter=Foo::MyType *,
  35. _RanIt=Foo::MyType *
  36. ]
  37. 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
  38. with
  39. [
  40. _FwdIt=Foo::MyType *
  41. ]
  42. 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
  43. with
  44. [
  45. _Ty=Foo::MyType,
  46. _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>,
  47. _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>
  48. ]
  49. 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
  50. with
  51. [
  52. _Ty=Foo::MyType,
  53. _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>,
  54. _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>
  55. ]
  56. 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
  57. with
  58. [
  59. _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>,
  60. _Ty=Foo::MyType,
  61. _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
  62. ]
  63. 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
  64. with
  65. [
  66. _Myvec=std::_Vector_val<std::_Simple_types<Foo::MyType>>,
  67. _Ty=Foo::MyType,
  68. _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
  69. ]
  70. 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
  71. with
  72. [
  73. _Ty=Foo::MyType,
  74. _RanIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>,
  75. _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
  76. ]
  77. 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
  78. with
  79. [
  80. _Ty=Foo::MyType,
  81. _RanIt=std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>,
  82. _Iter=std::move_iterator<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Foo::MyType>>>>
  83. ]
  84. 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> &&)'
  85. with
  86. [
  87. _Ty=Foo::MyType
  88. ]
  89. 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
  90. with
  91. [
  92. _Ty=Foo::MyType
  93. ]
  94. c:\development\learning\cplusplus\doubledispatchandvisitor\doubledispatchandvisitor\main.cpp(42) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
  95. with
  96. [
  97. _Ty=Foo::MyType
  98. ]
  99. 1>Done Building Project "C:\Development\learning\cPlusPlus\doubleDispatchAndVisitor\doubleDispatchAndVisitor\doubleDispatchAndVisitor.vcxproj" (Rebuild target(s)) -- FAILED.
  100.  
  101. Build FAILED.
  102.  
  103. Time Elapsed 00:00:02.01
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement