fork download
  1. #include <cstring>
  2. void (*p)() = &std::strrchr; // error here, with "candidates are: ..."
  3. int main() {}
  4.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2: error: no matches converting function 'strrchr' to type 'void (*)()'
/usr/include/string.h:171: error: candidates are: char* strrchr(const char*, int)
/usr/include/c++/4.3/cstring:118: error:                 char* std::strrchr(char*, int)
stdout
Standard output is empty