[C++-sig] unnamed enum

Giulio Eulisse giulio.eulisse at cern.ch
Thu Mar 27 17:24:00 CET 2003


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?


Ciao,
Giulio

-- 
Giulio Eulisse
Northeastern University, Boston, MA (USA)
CERN, Geneve, GE (CH)
Office: 40-3-A15
Office phone:76 71692 Cellphone:(+39) 3356972726





More information about the Cplusplus-sig mailing list