IndexedType of ctors / Overriding ctors

Milian Wolff mail at milianw.de
Thu Aug 12 19:39:42 UTC 2010


On Thursday 12 August 2010 21:02:39 Andreas Pakulat wrote:
> On 12.08.10 19:49:47, Milian Wolff wrote:
> > 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...
> 
> IndexedType has a operator bool() const and bool is comparable with
> operator<:

Ah, thanks! Lets see what other hidden bugs got magically fixed by introducing 
that operator now :)

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/7b61701b/attachment.sig>


More information about the KDevelop-devel mailing list