C++ compiler - decltype doesn't infer the correct return type - vector<int>& instead of vector<int>. - by lucabol

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 719083 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/18/2012 1:10:25 AM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

decltype doesn't infer the correct return type - vector<int>& instead of vector<int>. That causes the code below to give the wrong result.

BTW: Bcc appears to produce my expected result
BTW2: let me know if there is a workaround to help the compiler inference
Sign in to post a comment.
Posted by Deon [MSFT] on 4/29/2014 at 12:24 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Ulzii [MSFT] on 1/25/2012 at 2:18 PM
Hello,

Thank you for reporting this. It indeed was a bug and we've fixed it in the current in-progress development cycle. You will see it fixed in the next major release of VS.

Thanks,
Ulzii Luvsanbat
Windows C++ Team
Posted by MS-Moderator10 [Feedback Moderator] on 1/18/2012 at 6:10 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 investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 1/18/2012 at 1:43 AM
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)