Ambiguous KLed constructors

Guillaume Laurent glaurent at telegraph-road.org
Wed Nov 5 12:38:50 GMT 2003


On Wednesday 05 November 2003 13:31, Richard Dale wrote:
>
> 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?

The latter, although the error isn't really missed by gcc in that it can't 
spot it until you actually try to use the ctor in an ambiguous way. Anyway, 
the 1st ctor is superfluous and should be removed.

-- 
				Guillaume
				http://www.telegraph-road.org




More information about the kde-core-devel mailing list