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'
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development