
8 Mar
2005
8 Mar
'05
9:12 a.m.
Hello, I have problems using wonderful boost::bind with __cdecl member functions like the following: #include <boost/bind.hpp> struct S { void __cdecl foo( int ); }; void bar() { S s; int const n = 5; boost::bind( &S::foo, &s, _1 )( n ); } ... error C2825: 'F::result_type': cannot form a qualified name ... I am using MSVC Version 13.10.3077 and boost 1.32.0. I know there is already a way to use stdcall, so does anybody see a solution for __cdecl? thanks for any help, regards, --Daniel