Modify

Opened 4 years ago

#9661 new Bugs

bind: Convert lost qualifier

Reported by: Yuan Yao <yaoyuan1216@…> Owned by: Peter Dimov
Milestone: To Be Determined Component: bind
Version: Boost 1.55.0 Severity: Problem
Keywords: bind Cc: vs2013

Description

The following code doesn't compile with vs2013. It will be OK if boost::bind is replaced with std::bind or using less placeholders.

#include <boost/bind.hpp>
void foo(int&, int, int){}

int main(){
	using boost::bind;	

	int a;
	auto&& f = bind(&foo, _1, _2, _3);
	f(a, 0, 0);
	
	return 0;
}

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Peter Dimov.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.