>>760
『単に』って、それが問題だから相談してるんですが。

>>764
じゃあ、これをpublic継承以外でエレガントに解決する方法を教えてください。

namespace {
  typedef void (*FUNC)(void);
  class CTable :
    public map<string,FUNC>
  {
  public:
    CTable(){
      (*this)["hoge"] = &Hoge;
      (*this)["sage"] = &Sage;
      (*this)["moge"] = &Moge;
      (*this)["hage"] = &Hage;
    }
  };
}

void foo(const string& str){
  static CTable table;
  // tableをいろいろ使う。省略。
}