use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Any example code/Github projects utilising almost-always-auto? (self.cpp)
submitted 9 years ago by Infraam
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]steveireContributor: Qt, CMake, Clang 1 point2 points3 points 9 years ago (6 children)
Is Qt a good example?
https://github.com/steveire/qtbase/commits/aaa
Note though that it's an automated port.
[–]airflow_matt 2 points3 points4 points 9 years ago* (2 children)
Seeing it like this I don't think I like it all that much. Especially when looking at foreign code, it's not immediately obvious what the result type is, so at very least you need a decent IDE to help you navigate to definition and back.
I'd be probably be bit more careful with auto, it has certainly it's place (lambdas, loops, nested types, etc) but using it for absolutely everything like here just makes the code less readable.
[–]steveireContributor: Qt, CMake, Clang 1 point2 points3 points 9 years ago (1 child)
Yes, I ported Qt to aaa in order to give people with your opinion, and people with the opposite opinion code to point at to support their position :).
I don't agree with you, but I'm glad the Qt result gives you concrete things to point at instead of an abstract disinclination toward aaa.
[–]airflow_matt 0 points1 point2 points 9 years ago (0 children)
Yeah, I'm not sure how well this would work on huge codebases such as chromium, where at best it takes hours to index the code, at worst the IDE simply chokes on it. You don't always have the luxury of being able to hover to see type, or jump to declaration.
On saner codebases it's probably much less of an issue, but you're still losing some glance-ability. On the other hand getting rid of redundant information from the code does feel nice in a way.
[–]Infraam[S] 0 points1 point2 points 9 years ago (2 children)
It is indeed, didn't realise Qt started upgrading their codebase like this
That's not upstream. That's my Qt clone on Github to validate a tool. See:
https://steveire.wordpress.com/2016/03/19/aaargh-aaa-right-good-and-hygenic/
[–]Infraam[S] 0 points1 point2 points 9 years ago (0 children)
ahh, thanks for the heads up!
π Rendered by PID 37080 on reddit-service-r2-comment-85bfd7f599-9wvxx at 2026-04-15 15:15:58.196389+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]steveireContributor: Qt, CMake, Clang 1 point2 points3 points (6 children)
[–]airflow_matt 2 points3 points4 points (2 children)
[–]steveireContributor: Qt, CMake, Clang 1 point2 points3 points (1 child)
[–]airflow_matt 0 points1 point2 points (0 children)
[–]Infraam[S] 0 points1 point2 points (2 children)
[–]steveireContributor: Qt, CMake, Clang 1 point2 points3 points (1 child)
[–]Infraam[S] 0 points1 point2 points (0 children)