C++11 enum class can be converted to nullptr - by Mogens Hansen

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<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 779611 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 2/20/2013 6:53:52 AM
Access Restriction Public


The code

enum class test { ZERO, ONE };

int main()
    const test  zero = test::ZERO;
    int*    x = zero;

can compile - it shouldn't
Sign in to post a comment.
Posted by Microsoft on 2/22/2013 at 2:43 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 2/21/2013 at 1:51 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)