Packaged task & thread compile error bug - by Petke Himself

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 736924 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 4/14/2012 9:30:12 AM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

In 
http://stackoverflow.com/questions/7548480/how-do-i-create-a-packaged-task-with-parameters

The author of Just:thread posts some sample code that fails to compile when using the vs2011 standard library alternatives.


Sign in to post a comment.
Posted by Microsoft on 5/7/2012 at 7:01 PM
Hi,

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

Note that this is similar to http://connect.microsoft.com/VisualStudio/feedback/details/729886/std-thread-constructor-doesnt-handle-movable-object (internally DevDiv#377755), which will still be broken in VC11 RTM. I've made a note to myself that when we get std::thread working with movable-only arguments, we should ensure that movable-only functors (the subject of your bug) continue to work.

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 4/15/2012 at 10:23 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)
Posted by MS-Moderator07 [Feedback Moderator] on 4/15/2012 at 10:16 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Posted by Petke Himself on 4/15/2012 at 3:19 PM
I made a toy example and included the compile error here: http://pastebin.com/uWpWp1F3