Home Dashboard Directory Help

std::make_shared call error (c++) by moctob


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 739016
Opened: 4/26/2012 6:53:15 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
User(s) can reproduce this bug


Call to std::make_shared fails with C2664 compile time error.
Sign in to post a comment.
Posted by Microsoft on 4/27/2012 at 9:54 PM

Thanks for reporting this bug. It has already been fixed, and the fix will be available in VC11 RTM.

I confirmed that this emits a compiler error with VC10 SP1, while it compiles successfully with my current build of VC11. Since make_shared<T>() is a plain vanilla perfect forwarder, and given the (bogus) text of the compiler error, I am certain that a compiler bug was responsible here, which has been fixed.

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 MS-Moderator07 [Feedback Moderator] on 4/26/2012 at 7:19 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 MS-Moderator01 on 4/26/2012 at 7: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)
Sign in to post a workaround.