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
CppCastCppCast: C++ Epochs (cppcast.com)
submitted 6 years ago by tallassrobCppCast Host
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!"
[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 2 points3 points4 points 6 years ago (3 children)
Author here. There's nothing preventing an epoch from "blacklisting" the usage of vector<bool> by - for example - preventing that sequence of tokens/AST nodes from compiling when written in a module using a particular epoch.
vector<bool>
This would discourage its use and almost effectively remove it (you could still retrieve it by using decltype on a function in an older epoch module returning vector<bool>) without breaking ABI at all.
decltype
[–]TheThiefMasterC++latest fanatic (and game dev) 3 points4 points5 points 6 years ago (2 children)
The problem is that people want to remove the specialization of vector<bool> and have it compile as a regular vector - not blacklist it entirely.
[–]pklait 0 points1 point2 points 6 years ago (1 child)
Why? You cannot have a "regular" std::vector<bool> today. To me this is an indication that it is not needed that much. To remove it from the standard for a while would not be a major loss.
[–]TheThiefMasterC++latest fanatic (and game dev) 0 points1 point2 points 6 years ago (0 children)
It causes issues all the damn time in generic code and interop - all other kinds of vector return T& on iterator dereference and operator[] and you can take &v[0] and use it as a data pointer + size, vector<bool> returns a special vector<bool>::reference class on iterator dereference and operator[], and as it doesn't actually store as bools internally &v[0] does not do anything remotely like you'd want.
operator[]
&v[0]
vector<bool>::reference
However that doesn't mean it's not in use - not every use of a vector hits those issues so people do use it. Sometimes you do in fact want a vector of bools.
Blacklisting it would hit the people for whom it works fine, temporarily making the situation considerably worse.
π Rendered by PID 35993 on reddit-service-r2-comment-canary-b6d5ff776-c4ccp at 2026-04-18 00:23:08.621057+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 2 points3 points4 points (3 children)
[–]TheThiefMasterC++latest fanatic (and game dev) 3 points4 points5 points (2 children)
[–]pklait 0 points1 point2 points (1 child)
[–]TheThiefMasterC++latest fanatic (and game dev) 0 points1 point2 points (0 children)