[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdelibs/kutils/ksettings
From:       André_Wöbbeking <Woebbeking () onlinehome ! de>
Date:       2005-12-11 14:43:35
Message-ID: 200512111543.35927.Woebbeking () onlinehome ! de
[Download RAW message or body]

On Sunday 11 December 2005 15:02, Matthias Kretz wrote:
> On Sunday 11 December 2005 10:53, André Wöbbeking wrote:
> > > Ah, yes. I couldn't use the Qt functions because it was a
> > > QValueList<PageNode*> and sorting them by their address didn't
> > > make much sense. ;-)
> >
> > Well, you could implement operator<(const PageNode*).
>
> Wouldn't that only help for the following case?
> PageNode a;
> PageNode* b;
> bool x = a < b;

Yeah, you're right.

> I'd need something like
> bool operator<( const PageNode* lhs, const PageNode* rhs );

That's the correct solution. Of course you've to declare/implement this 
outside the class.


Cheers,
André

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic