Boost logo

Boost Users :

From: Daniel Boelzle (Daniel.Boelzle_at_[hidden])
Date: 2005-03-08 04:12:20


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net