[C++]cannot convert from 'std_Binderstd_Unforced,int &,sockaddr ,size_t' to 'int'
keywords: C++, std_Binderstd_Unforced, sockaddr
Error:
Error C2440 : 'initializing': cannot convert from 'std::_Binder<std::_Unforced,int &,sockaddr *,size_t>' to 'int'
Solution:
Give a global function symbol.
int rs = ::bind(ServerSocket, (sockaddr*)&oAddr, sizeof(oAddr));
“Trying to predict the future is like trying to drive down a country road at night with no lights while looking out the back window. ” ― Peter Drucker