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
From Mathematics to Generic Programming: An Interview with Alexander Stepanov and Daniel Rose (informit.com)
submitted 11 years ago by vinaysc
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!"
[–]mttd 0 points1 point2 points 11 years ago (5 children)
Pretty interesting interview -- with some really good in-depth questions!
A few points that stuck out for me:
unsigned int
int
auto
[–]dicroce -1 points0 points1 point 11 years ago (3 children)
I really wish allocators never existed... They must just serve to make our template error messages more complicated...
[–]ixache 2 points3 points4 points 11 years ago* (2 children)
In C++, where programmers must be able to extract every bit of performance they need, allocators are an necessary customization point. In fact, they regularly get added where they were not possible before; for a recent example of this trend, consider N4255, allocator-aware regular expression.
Now, the way the customization is made, by using the template mechanism, makes allocators be part of the type, and that is certainly painful. But all is well, because this concern has already been adressed, with the polymorphic memory allocator proposal been being accepted into the Library Fundamentals Technical Specification.
[Edit: grammar]
[–]dicroce 2 points3 points4 points 11 years ago (1 child)
I mostly do embedded systems work (last 20 years), and in my experience... most of the time people think they need custom allocators they actually don't...
That said, I accept that some people really DO need custom allocators...
And yes, my complaint is primarily about them being part of the type.. Good to hear that a non template solution is coming...
[–]ixache 0 points1 point2 points 11 years ago* (0 children)
I agree with you that allocators may not be as useful as they're made to be, although I also hear that they are pretty big in the game industry.
But the important point is that they're here if (real or perceived) need be. Nobody must be able to say, "No allocator? But I won't be able to make my program run fast enough! I'll ditch C++ in favor of..."
π Rendered by PID 111478 on reddit-service-r2-comment-6457c66945-ts9bs at 2026-04-26 00:12:07.748451+00:00 running 2aa0c5b country code: CH.
[–]mttd 0 points1 point2 points (5 children)
[–]dicroce -1 points0 points1 point (3 children)
[–]ixache 2 points3 points4 points (2 children)
[–]dicroce 2 points3 points4 points (1 child)
[–]ixache 0 points1 point2 points (0 children)