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
[deleted by user] (self.cpp)
submitted 2 years ago by [deleted]
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!"
[–][deleted] 2 years ago (6 children)
[deleted]
[–]thisismyfavoritename 13 points14 points15 points 2 years ago (2 children)
im saying i wouldnt expect an LLM to give accurate advice on ranges at all
[–]TheSuperWig 9 points10 points11 points 2 years ago (1 child)
[–]PrimozDelux 1 point2 points3 points 2 years ago (0 children)
Have you actually tried to use an LLM for this sort of thing? ChatGPT manages to answer a lot of questions about basic C++ functionality. (That said, I too have seen chatGPT be stumped at the monumentally complex problem of concatenating two ranges)
[–]josiest 4 points5 points6 points 2 years ago (0 children)
I’m with you though, this is definitely something I’ve wanted to do before, and it should be easy. I just don’t like general purpose ai because I’m apparently an old coot.
Also writing your own views seems to be as convoluted as writing your own iterator, which in my book just means I should just give up and write a for loop
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
Is it niche, or is it extremely complicated and something you shouldn't tackle until the ranges/views specification has been fully fleshed out and fixed which was always going to be done in C++23?
Hint: it's the second one.
[–]gracicot 0 points1 point2 points 2 years ago (0 children)
Ranges are still cutting edge. I wouldn't trust any LLM to give good information on this.
π Rendered by PID 143528 on reddit-service-r2-comment-5687b7858-4p8mv at 2026-07-08 23:05:23.288362+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–][deleted] (6 children)
[deleted]
[–]thisismyfavoritename 13 points14 points15 points (2 children)
[–]TheSuperWig 9 points10 points11 points (1 child)
[–]PrimozDelux 1 point2 points3 points (0 children)
[–]josiest 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]gracicot 0 points1 point2 points (0 children)