- 13 名前:745 mailto:sage [2007/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で次のような古い記事を見付けたのですが ttp://tinyurl.com/34cv9e この通りに戻り値を明示的に指定しても無駄なようです
|

|