I have overloaded function
int put_message(int level, int sys_log_level, const char * inp_message);
int put_message(int level, int sys_log_level, const std::string &inp_message);
and call this function
put_message(0, LOG_ERR, "clock_gettime error");
Code is compiled and works but Eclipse CDT Code analyzer says
Invalid arguments ' Candidates are: int put_message(int, int, const char *) int put_message(int, int, const ? &) '
How can I fix this the error?
Update: After modifying LOG_ERR to int(LOG_ERR) error disappears. I have not add the in the header. Adding solves the problem.