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

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.

Sign in
to vote
ID 739016 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 4/26/2012 6:53:15 AM
Access Restriction Public


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 .

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(