[C++-sig] unnamed enum

Nicodemus nicodemus at globalite.com.br
Fri Mar 28 00:36:49 CET 2003


Giulio Eulisse wrote:

>Hi,
>when pystifing
>
>qcolor.h
>
>from QT 3.0.5, there is an unnamed enum:
>
>class QColor{
>[...]
>enum { Dirt = 0x44495254, Invalid = 0x49000000 };
>[...]
>};
>
>This gets translated by pyste as 
>   
>enum_< QColor::._0 >("._0")
>        .value("Invalid", QColor::Invalid)
>        .value("Dirt", QColor::Dirt)
>    ;
>
>Which is obviously not valid because of ._0...Is this a known bug?
>Any idea on how to mask/exclude it?
>  
>

It's a bug in pyste, certainly. 8)
But does anybody know how to export an unnamed enum?







More information about the Cplusplus-sig mailing list