Hi,

 

I’m using winsock’s bind function in my code.

After adding a bunch of header files related to boost for some other added functionality, I’m getting this error:

 

error C2668: 'boost::bind' : ambiguous call to overloaded function

1>          c:\boost_1_49_0\boost\bind\bind.hpp(1480): could be 'boost::_bi::bind_t<R,F,L> boost::bind<SOCKET,sockaddr*,unsigned int>(F,A1,A2)'

1>          with

1>          [

1>              R=boost::_bi::unspecified,

1>              F=SOCKET,

1>              L=boost::_bi::list2<boost::_bi::value<sockaddr *>,boost::_bi::value<unsigned int>>,

1>              A1=sockaddr *,

1>              A2=unsigned int

1>          ]

 

How do I specify that I want to use winsock’s bind function and not boost’s?

 

--

Vimal