Home Dashboard Directory Help
Search

std::bind and std::function are not move-aware by Thomas Petit


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 649274
Opened: 3/3/2011 4:47:03 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

std::function and std::bind are not able to work with move-only type.

This limitation makes life difficult when dealing with such type (the very useful std::unique_ptr comes to mind)
Details
Sign in to post a comment.
Posted by Glorindel on 3/18/2012 at 12:11 PM
Any chance such a fix will make its way into VC10? This drastically reduces the relevance of both std::bind and std::function in any C++11 motivated context.
Posted by Microsoft on 6/28/2011 at 6:58 PM
Hi,

Thanks for reporting this bug. We've fixed it, and the fix will be available in VC11.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 3/3/2011 at 10:44 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by Microsoft on 3/3/2011 at 5:15 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.