2009-03-18から1日間の記事一覧
boost::bindは、ファンクタを渡した場合に戻り値の推測することができないので、 std::function系を継承してないファンクタを渡す場合は下のようにファンクタの中で戻り値をresult_typeとしてtypedefするか #include <iostream> #include <string> #include <boost/bind.hpp> struct Functor { </boost/bind.hpp></string></iostream>…