[Live-devel] Problem with LocaleCategory typedef

Warren Young warren at etr-usa.com
Fri Apr 27 09:36:16 PDT 2012


On 4/27/2012 10:19 AM, Barry Stump wrote:
> I'm getting compiler typedef warnings for liveMedia/include/Locale.hh,
> line 52 (Live555 version 2012.04.21) which looks like this:
>
> typedef enum LocaleCategory { All, Numeric };
>
> Shouldn't the LocaleCategory type name come at the end, like this?
>
> typedef enum { All, Numeric } LocaleCategory;

I don't see why it needs a typedef at all.  An enum is a type, in the 
loose way C and C++ use that term.


More information about the live-devel mailing list