[bind?] 'boost::bind' : ambiguous call to overloaded function -- when compiling for x64

Hello,
My project builds well with MSVC10 for x86 platform. However, when I
tried to build it for x64, I started to get the following strange
error:
1>...cpp(42): error C2668: 'boost::bind' : ambiguous call to overloaded function
1> ...\boost\boost/bind/bind_mf_cc.hpp(43): could be
'boost::_bi::bind_t

My project builds well with MSVC10 for x86 platform. However, when I tried to build it for x64, I started to get the following strange error:
1>...cpp(42): error C2668: 'boost::bind' : ambiguous call to overloaded function 1> ...\boost\boost/bind/bind_mf_cc.hpp(43): could be 'boost::_bi::bind_t
boost::bind (R (__cdecl MyImpl::* )(B1),A1,A2)' <...> 1> ...\boost\boost/bind/bind_mf_cc.hpp(43): or 'boost::_bi::bind_t boost::bind (R (__cdecl MyImpl::* )(B1),A1,A2)' Note that the both variants are actually the same one.
Well, as usually, the problem was solved two minutes after the question had been sent. The problem was that my precompiled header contained the following definition: #ifdef _WIN32 #define BOOST_MEM_FN_ENABLE_STDCALL #endif and it appears that _WIN32 is defined both for x86 and for x64 platforms...
participants (1)
-
Igor R