Boostを語れゴラァ part5at TECH
Boostを語れゴラァ part5 - 暇つぶし2ch13:745
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)
この通りに戻り値を明示的に指定しても無駄なようです


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch