[ECOS] Re: casts to a type other than an integral or enumeration type in a constant-expression

Jonathan Larmour jifl@eCosCentric.com
Thu Feb 13 00:02:00 GMT 2003


Jonathan Larmour wrote:
> 
> The warning is certainly misleading at best as an int is certainly an 
> integral type ;-). From a quick read of the C++ standard, I can't see 
> any problem with this code.

Actually, what's more, I believe this code works fine with GCC 3.2.1.

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list