Ambiguous KLed constructors
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Wed Nov 5 12:31:04 GMT 2003
The KLed class has two constructors with all optional arguments:
KLed(QWidget *parent=0, const char *name=0);
KLed(const QColor &col=Qt::green, QWidget *parent=0, const char *name=0);
This is a problem for language bindings code generation because a call to
KLed::KLed() with no args gives a compiler error as it's ambiguous. What is
the correct C++ behaviour - take the first one - or should this really be a
compilation error which is being missed by gcc?
-- Richard
More information about the kde-core-devel
mailing list