Namespace conflict

I have "using namespace std" in my project. At the same time I'm using bind() from winsock which is global. I know there is a function called "bind" in the std as well. So why havn't this created a conflict in the past?

Now I've included a library (cryptopp) and immediately I get:

no suitable conversion function from "std::_Binder<std::_Unforced, SOCKET &, sockaddr *&, int>" to "int" exists

cannot convert from 'std::_Binder<std::_Unforced,SOCKET &,sockaddr *&,int>' to 'int'

No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

So my second question is what is the difference here?:
Last edited on
note that the template argument is sockaddr*&
Topic archived. No new replies allowed.