divyang4481 / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

"error C2668: 'boost::bind' : ambiguous call to overloaded function" in BrowserHost.cp on line 202 in VS2008 (fix included) #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Problem building 1.4 checked out this afternoon (2011-01-19), fix included.

I am seeing "error C2668: 'boost::bind' : ambiguous call to overloaded 
function" in BrowserHost.cp on line 202 in VS2008.

Following fix seems to work. Not sure why it's not happening for someone else 
on IRC, who is using VS2010 Express (or why line 192 doesn't trigger the same 
error).

FB::AsyncCallManager::~AsyncCallManager()
{
    using namespace boost::lambda;
-   std::for_each(canceledDataList.begin(), canceledDataList.end(), 
bind(delete_ptr(), boost::lambda::_1));
+   std::for_each(canceledDataList.begin(), canceledDataList.end(), 
boost::lambda::bind(delete_ptr(), boost::lambda::_1));
}

Best Regards,

Iain

Original issue reported on code.google.com by iaincoll...@gmail.com on 19 Jan 2011 at 3:56

GoogleCodeExporter commented 8 years ago
Fixed in http://bit.ly/h07Mzn

Original comment by richarda...@gmail.com on 19 Jan 2011 at 7:47