G++ enums 'underlying type'

Paolo Carlini pcarlini@suse.de
Sat Dec 25 20:59:00 GMT 2004


Hi everyone,

assuming something specific about g++ 'underlying type' (7.2/5) will 
alow me to remarkably simplifiy the implementation of 
tr1/type_traits/is_enum: is it signed or not? Basing on some simple 
experiments on x86, seems always wide either like an int or a long: is 
this correct in general?

Thanks in advance for any help,
Paolo.



More information about the Gcc mailing list