const ref to initializer_list is not recognized as valid ctor - by ixSci

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 770888 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 11/13/2012 6:03:34 AM
Access Restriction Public

Description

See the code below:
class A
{
public:
    A(const std::initializer_list<int>& list)
    {
    }
};

int main()
{
    A a = {1,2,3};
};

Code should compile but in fact it doesn't. It compiles only with non-ref initializer list
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:31 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 Microsoft on 11/20/2012 at 10:28 AM
Hi:
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next release of Visual C++.

Xiang Fan
Visual C++ Team
Posted by Microsoft on 11/13/2012 at 6:45 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Microsoft Visual Studio Connect Support Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 11/13/2012 at 6:19 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)