E2568 関数 '%s' の初期化が無効です(C++)

提供: RAD Studio
移動先: 案内検索

コンパイラのエラーと警告(C++):インデックス への移動


このエラーは、関数が DLL 内で正しく定義されていない場合に発生します。

       typedef int (tfun)(int);
       struct S {
           tfun p_;
           S(const tfun& p) : p_(p) {} // error: function used as initializer
       };
       void n(const tfun& p) {
           new S(p);
       }