E2568 Initialisation de la fonction '%s' non valide (C++)
Remonter à Erreurs et avertissements du compilateur (C++) - Index
Ce message survient quand une fonction n'est pas correctement définie dans une 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);
}