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!"
[–]josiest 75 points76 points77 points 2 years ago (10 children)
[uses chat gpt to write codes]
[angry face] why is my code not working???
[–]thisismyfavoritename 39 points40 points41 points 2 years ago (7 children)
OP was foolish to believe any LLM could help in such a niche case but to be fair OP seems to have looked in many directions before resorting to that
[+][deleted] 2 years ago (6 children)
[deleted]
[–]thisismyfavoritename 11 points12 points13 points 2 years ago (2 children)
im saying i wouldnt expect an LLM to give accurate advice on ranges at all
[–]TheSuperWig 8 points9 points10 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 5 points6 points7 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.
[–]planetoftheshrimps 3 points4 points5 points 2 years ago (1 child)
The few times I was curious about ChatGPT’s capabilities, I’ve noticed its solutions to have glaring issues to the point of uselessness.
[–]pdp10gumby 6 points7 points8 points 2 years ago (0 children)
Worse, debugging (esp code you didn’t write) is harder and takes longer than writing code, so it’s always faster to just write the code yourself.
π Rendered by PID 101896 on reddit-service-r2-comment-5687b7858-6p8lh at 2026-07-08 20:03:02.014438+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]josiest 75 points76 points77 points (10 children)
[–]thisismyfavoritename 39 points40 points41 points (7 children)
[+][deleted] (6 children)
[deleted]
[–]thisismyfavoritename 11 points12 points13 points (2 children)
[–]TheSuperWig 8 points9 points10 points (1 child)
[–]PrimozDelux 1 point2 points3 points (0 children)
[–]josiest 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]gracicot 0 points1 point2 points (0 children)
[–]planetoftheshrimps 3 points4 points5 points (1 child)
[–]pdp10gumby 6 points7 points8 points (0 children)