[PyKDE] typdef enum produces syntax error for sip

Glen W. Mabey Glen.Mabey at swri.org
Thu Oct 27 20:19:06 BST 2005


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




More information about the PyQt mailing list