コンパイル時にエラーが発生しますが、その理由がわかりません。次のコードはコンパイルを拒否し、次のエラーが発生します。
エラー C2664: 'void (PyObject *,const char *,boost::type *)': パラメーター 1 を 'const char *' から 'PyObject *' に変換できません
エラー C2664: 'void (PyObject *,const char *,boost ::type *)': パラメーター 3 を 'boost::shared_ptr' から 'boost::type *' に変換できません
PyObject* self = ...;
const char* fname = "...";
boost::function<void (boost::shared_ptr<Event>)> func;
func = boost::bind(boost::python::call_method<void>, self, fname, _1);