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:21: error: no matches converting function ‘strrchr’ to type ‘void (*)()’
In file included from /usr/include/c++/4.7/cstring:44:0,
                 from prog.cpp:1:
/usr/include/string.h:249:1: error: candidates are: char* strrchr(char*, int)
/usr/include/string.h:255:1: error:                 const char* strrchr(const char*, int)
stdout
Standard output is empty