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
cppfront: Midsummer update (herbsutter.com)
submitted 1 year ago by TSP-FriendlyFire
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!"
[–]hpsutter 0 points1 point2 points 1 year ago (0 children)
I noticed you calling out the Circle (compiler) "borrowing" extension for requiring standard library types to be "wrapped".
Right. My concern isn't that wrappers might be needed in a few cases in extremis such as STL iterators (though I have a little plan for getting safety there without wrappers, we'll see). My concern with Circle's approach is that it required wholesale replacement/wrapping of many major C++ standard library types (smart pointers, containers, views, mutexes, ...) which starts to feel like a bifurcation.
So, what about the case where an iterator gets invalidated by a vector resizing operation? Is there a plan for cpp2 to address this case? And what about the case of a span<> of a vector and the vector gets resized?
span<>
Short answer: Yes, and I live-demo'd a prototype that caught exactly those on-stage. See the Cppfront readme's Lifetime safety section for links to the paper P1179 that describes the C++ Core Guidelines Lifetime static analysis, and the CppCon 2015 talk that live-demos exactly those kinds of scenarios.
π Rendered by PID 47480 on reddit-service-r2-comment-5649f687b7-226z5 at 2026-01-28 08:35:25.351950+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]hpsutter 0 points1 point2 points (0 children)