[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] typdef enum produces syntax error for sip
From:       "Glen W. Mabey" <Glen.Mabey () swri ! org>
Date:       2005-10-27 19:19:06
Message-ID: 20051027191906.GA29503 () bams ! swri ! edu
[Download RAW message or body]


In my .sip file, I use the code:

namespace FreqHop
{
    class CReport
    {
    public:
        enum { INITIAL, UPDATE, FINAL };
        typedef enum ReportType;

which produces a syntax error.  However, changing the last line to 

        typedef int ReportType;

results in no error being generated.  The following form (if it didn't
also produce a syntax error) would be preferred:

        typedef enum { INITIAL, UPDATE, FINAL } ReportType;

A search at http://www.google.com/search?q=site:mats.imk.fraunhofer.de
didn't seem to produce anything useful regarding typdef's of enum's.

Thank you,
Glen Mabey

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic