Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualÁlvaro

Posted 29 April 2013 - 02:45 PM

You are just telling the compiler you are going to use the symbol `x::hey' as meaning 0. That may or may not "occupy any space", depending on what exactly you mean by that. (The size of an object of type x will not be larger because of the enum, the executable will not be larger (except maybe for debugging info), but the source code will use more space, and the compiler will use more memory.)


#1Álvaro

Posted 29 April 2013 - 02:44 PM

You are just telling the compiler you are going to use the symbol `x::hey' as meaning 0. That may or may not "occupy any space", depending on what exactly you mean by that. (The size of an object of type x will not be larger because of the enum, the executable will not be larger, but the source code will use more space, and the compiler will use more memory.)


PARTNERS