Infatti... codice scritto giusto ieri:
codice:
typedef const char * (*strerrorFunc)(int ErrorNumber);
typedef int (*strerror_rXSIFunc)(int ErrorNumber, char * Buffer, size_t BufferLength);
typedef const char * (*strerror_rGNUFunc)(int ErrorNumber, char * Buffer, size_t BufferLength);
//...
static std::string composeMessage(const std::string & Message, int ErrorNumber, strerror_rXSIFunc TranslatingFunction);
static std::string composeMessage(const std::string & Message, int ErrorNumber, strerror_rGNUFunc TranslatingFunction);
static std::string composeMessage(const std::string & Message, int ErrorNumber, strerrorFunc TranslatingFunction);
Chi non typedefizza i puntatori a funzione nel proprio codice peste lo colga.