E2568 関数 '%s' の初期化が無効です(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); }
このエラーは、関数が 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); }