[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Krazy: prefix vs. postfix ++ and -- operators
From: Torsten Rahn <torsten () kde ! org>
Date: 2011-01-11 16:53:09
Message-ID: 201101111753.09611.torsten () kde ! org
[Download RAW message or body]
On Tuesday, 11. January 2011 16:16:23 Christoph Feck wrote:
>
> Is this krazy warning still correct?
>
> Christoph Feck (kdepepo)
Use preincrement whenever possible. Not only does this policy ensure that \
your code stays efficient (if the compiler isn't able to to optimize it \
away). It also accurately does what you mean. See the discussion box in \
Herb Sutter's "Exceptional C++", page 20:
http://books.google.de/books?id=58rZvOSuheEC&lpg=PA20&ots=LZSfjxnWOj&dq=Herb%20Sutter%20Postincrement%20Preincrement&pg=PA21#v=onepage&q&f=false
Regards,
Torsten
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic