boost::any::operator= へのポインターを取得したいので、次のようにしました。
bool(__thiscall boost::any::*func)(const bool&) = &(boost::any::operator=<bool>);
しかし今、コンパイラは言う
初期化中 : 'overloaded-function' から 'bool (__thiscall boost::any::* )(const bool &)' に変換できません
私もこのようにしようとしました:
bool(__thiscall boost::any::*func)(const bool&) = static_cast<(boost::any::*)(const bool&)>(&(boost::any::operator=<bool>));
しかし、この行に「構文エラー: '('」というコンパイラがあります。
誰か助けてくれませんか?
PS上記のコードでboost::anyのインスタンスを作成します