07/10/27 03:54:01
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
#define BOOST_MEM_FN_ENABLE_STDCALL
#define BOOST_BIND_ENABLE_STDCALL
#include <boost/bind.hpp>
struct F
{
int __stdcall f(int) { return 0; }
};
int main(void) {
namespace bll = boost::lambda;
F f;
boost::bind( &F::f, &f, bll::_1 )(1);
// bll::bind<int>( &F::f, &f, bll::_1 )(1); <- error!!
}
__stdcallの関数はboost::lambda::bindでは呼びだせないんでしょうか?
boost.usersで次のような古い記事を見付けたのですが
URLリンク(tinyurl.com)
この通りに戻り値を明示的に指定しても無駄なようです