Visual C++: Ill-Formed unique_ptr Function Call Syntax - by Timothy003

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 633905 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/29/2010 11:32:35 PM
Access Restriction Public


The std::unique_ptr class can be called like a function.
Sign in to post a comment.
Posted by Microsoft on 1/27/2011 at 3:09 PM

Thanks for reporting this bug. We've fixed it, and the fix will be available in VC11. unique_ptr derives from empty deleters in order to take advantage of the Empty Base Class Optimization; we now use private inheritance to prevent the empty deleter's function call operator from being accessible to users of unique_ptr.

If you have any further questions, feel free to E-mail me at .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 12/30/2010 at 1:20 AM
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 Microsoft on 12/29/2010 at 11:35 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(