[Development] qsizetype and classes working with QStrings or QList
André Pönitz
apoenitz at t-online.de
Tue Aug 25 21:15:24 CEST 2020
On Mon, Aug 24, 2020 at 09:46:43AM +0200, Mathias Hasselmann wrote:
> C++ also has a solution for that problem: [1]
> https://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style-almost-always-auto/
AAA is a non-solution from the ivory tower.
It's a pain for human reviewers and tools operating on less then a full
translation unit.
(Almost) real-world example:
for (auto i = foo.guess_stuff(); --i >= 0; )
do_something(i);
Good? Bad?
Andre'
More information about the Development
mailing list