IndexedType of ctors / Overriding ctors

Milian Wolff mail at milianw.de
Thu Aug 12 17:49:47 UTC 2010


On Monday, 9. August 2010 14:47:06 David Nolden wrote:
> 2010/8/9 Milian Wolff <mail at milianw.de>:
> > Hello all, esp. David :)
> > 
> > I noticed that the OverrideHelper only offers you one Ctor at a time,
> > since it uses a Hash with IndexedType as key, and apparently that is
> > equal for all Ctors. I want to fix that, what would you propose?
> 
> Hmm, the type should be different, after all it contains all the
> function parameters. So that's probably the problem here. If you want
> to fix it, make sure  that the argument-types are correctly stored in
> the function-type of a constructur.
> constructor->abstractType()->toString() should show the argument
> types.

The reason was that QMap was used and IndexedType did not provide an 
implementation of operator<().

I wonder how it could compile without that implementation...

Bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100812/bb95d3b4/attachment.sig>


More information about the KDevelop-devel mailing list