std::bind and winsock.h bind confusion

c++, namespaces, std, winsock

Solution

You can change your calls to use `::bind()` to specify the global namespace.

Problem

I'm working on a very large project and in one file we all of the sudden got a compile-time error where the compiler seems to think that our call to winsock.h `bind()` is actually a call to `std::bind()`. It seems that somewhere in a include file there is `using namespace std` code snippet. We could try and find where these `using namespace std` are in use and remove them, but perhaps there is a better way to do this?

Original source