Is there any way to use boost::function and member function pointers with
VC6 . I realize it is deficient in partial specialization but I was still
hoping to be able to use it. All my attempts to compile meet with failure
although the compiler tests say that VC6 succeeds both with boost::function
and boost::bind.
If I try the bind1st.cpp example in libs\function\example directory I get
the error:
error C2784: 'class std::mem_fun_t<_R,_Ty> __cdecl std::mem_fun(_R
(__thiscall _Ty::*)(void))' : could not deduce template argument for
'<Unknown>' from 'int (__thiscall X::*)(int)'
If I try some code of my own and use boost::bind instead, I get an error:
error C2780: 'class boost::_bi::bind_t
__cdecl boost::bind(R (__thiscall T::*)(B1,B2 ,B3,B4,B5,B6,B7,B8) const,A1,A2,A3,A4,A5,A6,A7,A8,A9)' : expects 10 arguments - 2 provided
My own code is:
#include "stdafx.h"
#include