[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: stupid C++ question / operator overloading / Qt
From: Bo Thorsen <bo () sonofthor ! dk>
Date: 2001-02-27 20:10:21
[Download RAW message or body]
On Tue, 27 Feb 2001, Dirk Mueller wrote:
> On Die, 27 Feb 2001, Harri Porten wrote:
>
> > > I noticed that Qt uses "int operator==(foo, bar)" while my C++ book
> > > (Stroustrup) says something about "bool operator==(foo, bar)".
> > "Almost only" for QChar, right ?
>
> Thats were I noticed and investigated it (still looking into it on how to
> make the html tokenizer rocking fast ;-) ).
>
> I didn't check all overloaded operators yet. I was hoping that there is some
> gcc -Warning about that but apparently there isn't :-( So there might be
> more instances of partially wrong signatures.
There is an option to enable warnings as Scott Meyers sees the world. It
is called -Weffc++ after the books. Wether or not it warns about this I'm
not sure, but a few of his items are warning about stuff very much like
it.
Bo.
--
Bo Thorsen | Lahnsgade 31, st.
Free software developer | 5000 Odense C
SuSE Labs | Denmark
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic