alignment_of issues warning for classes with private destructors - by akondratskiy

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 786574 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 5/8/2013 7:49:11 AM
Access Restriction Public


Using std::alignment_of<T> for a type that has a private destructor, issues a warning: 

warning C4624: 'std::_Get_align<_Ty>' : destructor could not be generated because a base class destructor is inaccessible"

This is a problem both in VS2010 and 2012.
Sign in to post a comment.
Posted by Microsoft on 5/22/2013 at 5:57 PM

Thanks for reporting this bug. We've fixed it, and the fix will be available in VC12 RTM (that's a version number, not a year - VC11 was VS 2012).

Note: Connect doesn't notify me about comments. If you have any further questions, please E-mail me.

Stephan T. Lavavej
Senior Developer - Visual C++ Libraries
Posted by Microsoft on 5/8/2013 at 7:53 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(