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    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to