Prohibit enum <-> int mixup
Enrico Weigelt
weigelt@metux.de
Sat Jan 29 17:35:00 GMT 2011
Hi folks,
is there a way to let the compiler prohibit mixing up enums and
ints ? (eg. no assignments between enums and ints, no numeric
operations on enums, etc).
That would be a great help to me in a current refactoring process.
cu
--
----------------------------------------------------------------------
Enrico Weigelt, metux IT service -- http://www.metux.de/
phone: +49 36207 519931 email: weigelt@metux.de
mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
----------------------------------------------------------------------
Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
More information about the Gcc-help
mailing list