I would like to know how.
I have looked at this topic, and I understand that “The choice of type is implementation-defined.”, but I am curious to know how to get 1 instead of 4.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
C++11 introduced a way to change the underlying type of an enum.
Still, you’re probably better off with using the default
intin most cases.