MSVC10 using copy constructor instead of move - by Mooing Duck

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<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 778513 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 2/4/2013 9:29:37 PM
Access Restriction Public

Description

When compiling the code below, the output should obviously be "move", but instead, I see "copy".  The compiler should be implicitly defining a move constructor for the track class that uses the move constructor of the root member, but seems to be using a defaulted copy constructor instead.  Adding explicit move and copy constructors to the track class results in the expected behavior. (Discovered in MSVC10 express, confirmed in VS11 with November CRT)
Sign in to post a comment.
Posted by Microsoft on 2/5/2013 at 1:22 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Macy [MSFT] on 2/4/2013 at 9:50 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)