I want to write a C++ wrapper for the Linux Socket API. The method of my wrapper should have the same names as the underlying function names of the API.
But for example in the bind() method I use the plain C bind() function from the Linux socket API. I call bind(mSocketDescriptor, (struct sockaddr *) &serv_addr, sizeof(serv_addr))
which is compatible with the signature of the APIs function. My compiler is complaining Invalid arguments 'Candidates are: bool bind(int)'
Which is referring to my method inline bool Socket::bind(int portno)
.
Why is Eclipse referring to the wrappers function and how do I inhibit Eclipse doing this?