Advertisement
Guest User

std::bind in visual studio 2010

a guest
Mar 4th, 2013
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.80 KB | None | 0 0
  1. c:\program files (x86)\microsoft visual studio 10.0\vc\include\xxpmfcaller(42): error C2664: void (int): невозможно преобразовать параметр 1 из "boost::arg<I>" в "int"
  2. with
  3. [
  4. I=1
  5. ]
  6. Для выполнения данного преобразования нет доступного оператора преобразования, определенного пользователем, или вызов оператора невозможен
  7. c:\program files (x86)\microsoft visual studio 10.0\vc\include\xxpmfcaller(52): см. ссылку на создание экземпляров функции шаблон при компиляции "_Ret std::tr1::_Pmf_caller2<_Ret,_Arg0>::_Call_pmf<_Pmf,_Ty,_Farg1>(volatile const void *,_Pmf,_Farg0 &,_Farg1 &)"
  8. with
  9. [
  10. _Ret=_Rx,
  11. _Arg0=MyStruct,
  12. _Pmf=void (__thiscall MyStruct::* const )(int),
  13. _Ty=MyStruct *,
  14. _Farg1=boost::arg<1>,
  15. _Farg0=MyStruct *
  16. ]
  17. c:\program files (x86)\microsoft visual studio 10.0\vc\include\xxcallpmf(9): см. ссылку на создание экземпляров функции шаблон при компиляции "_Ret std::tr1::_Pmf_caller2<_Ret,_Arg0>::_Apply_pmf<const _Ty,_Arg,boost::arg<I>>(_Pmf,_Farg0 &,_Farg1 &)"
  18. with
  19. [
  20. _Ret=_Rx,
  21. _Arg0=MyStruct,
  22. _Ty=void (__thiscall MyStruct::* const )(int),
  23. _Arg=MyStruct *,
  24. I=1,
  25. _Pmf=void (__thiscall MyStruct::* const )(int),
  26. _Farg0=MyStruct *,
  27. _Farg1=boost::arg<1>
  28. ]
  29. c:\program files (x86)\microsoft visual studio 10.0\vc\include\xxbind1(292): см. ссылку на создание экземпляров функции шаблон при компиляции "_Ret std::tr1::_Callable_pmf<_Ty,_Memty,_Indirect>::_ApplyX<_Ret,_Arg&,boost::arg<I>&>(_Arg0,_Arg1) const"
  30. with
  31. [
  32. _Ret=_Rx,
  33. _Ty=void (__thiscall MyStruct::* const )(int),
  34. _Memty=MyStruct,
  35. _Indirect=false,
  36. _Arg=MyStruct *,
  37. I=1,
  38. _Arg0=MyStruct *&,
  39. _Arg1=boost::arg<1> &
  40. ]
  41. c:\program files (x86)\microsoft visual studio 10.0\vc\include\xxbind0(31): см. ссылку на создание экземпляров функции шаблон при компиляции "_Ret std::tr1::_Bind2<_Callable,_Arg0,_Arg1>::_ApplyX<_Rx,T0&,std::tr1::_Nil&,std::tr1::_Nil&,std::tr1::_Nil&,std::tr1::_Nil&,std::tr1::_Nil&,std::tr1::_Nil&,std::tr1::_Nil&,std::tr1::_Nil&,std::tr1::_Nil&>(_Barg0,_Barg1,_Barg2,_Barg3,_Barg4,_Barg5,_Barg6,_Barg7,_Barg8,_Barg9)"
  42. with
  43. [
  44. _Ret=_Rx,
  45. _Callable=std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,
  46. _Arg0=MyStruct *,
  47. _Arg1=boost::arg<1>,
  48. T0=int,
  49. _Barg0=int &,
  50. _Barg1=std::tr1::_Nil &,
  51. _Barg2=std::tr1::_Nil &,
  52. _Barg3=std::tr1::_Nil &,
  53. _Barg4=std::tr1::_Nil &,
  54. _Barg5=std::tr1::_Nil &,
  55. _Barg6=std::tr1::_Nil &,
  56. _Barg7=std::tr1::_Nil &,
  57. _Barg8=std::tr1::_Nil &,
  58. _Barg9=std::tr1::_Nil &
  59. ]
  60. c:\workplace\libs\boost_1_52_0\boost\function\function_template.hpp(153): см. ссылку на создание экземпляров функции шаблон при компиляции "void std::tr1::_Bind_base<_Ret,_BindN>::operator ()<T0&>(_Carg0)"
  61. with
  62. [
  63. _Ret=void,
  64. _BindN=std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>,
  65. T0=int,
  66. _Carg0=int &
  67. ]
  68. c:\workplace\libs\boost_1_52_0\boost\function\function_template.hpp(147): при компиляции функции-члена "void boost::detail::function::void_function_obj_invoker1<FunctionObj,R,T0>::invoke(boost::detail::function::function_buffer &,T0)" класса шаблон
  69. with
  70. [
  71. FunctionObj=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>,
  72. R=void,
  73. T0=int
  74. ]
  75. c:\workplace\libs\boost_1_52_0\boost\function\function_template.hpp(934): см. ссылку на создание экземпляров класса шаблон при компиляции "boost::detail::function::void_function_obj_invoker1<FunctionObj,R,T0>"
  76. with
  77. [
  78. FunctionObj=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>,
  79. R=void,
  80. T0=int
  81. ]
  82. c:\workplace\libs\boost_1_52_0\boost\function\function_template.hpp(722): см. ссылку на создание экземпляров функции шаблон при компиляции "void boost::function1<R,T0>::assign_to<Functor>(Functor)"
  83. with
  84. [
  85. R=void,
  86. T0=int,
  87. Functor=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>
  88. ]
  89. c:\workplace\libs\boost_1_52_0\boost\function\function_template.hpp(1070): см. ссылку на создание экземпляров функции шаблон при компиляции "boost::function1<R,T0>::function1<F>(Functor,int)"
  90. with
  91. [
  92. R=void,
  93. T0=int,
  94. F=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>,
  95. Functor=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>
  96. ]
  97. c:\workplace\libs\boost_1_52_0\boost\signals\slot.hpp(112): см. ссылку на создание экземпляров функции шаблон при компиляции "boost::function<Signature>::function<F>(Functor,int)"
  98. with
  99. [
  100. Signature=void (int),
  101. F=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>,
  102. Functor=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>
  103. ]
  104. c:\workplace\projects\android\xo-game\jni\main_code.cpp(72): см. ссылку на создание экземпляров функции шаблон при компиляции "boost::slot<SlotFunction>::slot<std::tr1::_Bind<_Result_type,_Ret,_BindN>>(const F &)"
  105. with
  106. [
  107. SlotFunction=boost::function<void (int)>,
  108. _Result_type=void,
  109. _Ret=void,
  110. _BindN=std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>,
  111. F=std::tr1::_Bind<void,void,std::tr1::_Bind2<std::tr1::_Callable_pmf<void (__thiscall MyStruct::* const )(int),MyStruct,false>,MyStruct *,boost::arg<1>>>
  112. ]
  113. ========== Построение: успешно: 0, с ошибками: 1, без изменений: 1, пропущено: 0 ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement