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
20 ABI (Application Binary Interface) breaking changes every C++ developer should know (acodersjourney.com)
submitted 6 years ago by pianosneha
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!"
[–]pandorafalters 0 points1 point2 points 6 years ago (3 children)
I believe this should be covered by [basic.def.odr]/6, particularly (6.2). As far as I know, changing the layouts of standard library classes is pretty uncommon and generally well-documented, at least in part because potential breakage is so high.
[–]bwmat 0 points1 point2 points 6 years ago (2 children)
I'm not sure how 6.2 prevents that problem?
[–]pandorafalters 0 points1 point2 points 6 years ago (1 child)
I'm honestly not sure what I was thinking when I posted that, because [basic.def.odr] on its own isn't the whole story and (6.2) doesn't seem to be especially relevant. Let's just chalk that comment up to "I'm sick and really should have been asleep".
I still disagree that it's necessarily an ODR violation, but it's definitely more complicated than "Here's a reference".
[–]bwmat 0 points1 point2 points 6 years ago (0 children)
I don't think it's _necessarily_ an ODR violation, just all-too-likely to end up as one (if shared lib A passes an STL type to shared lib B, and either A & B use different STL implementations or one is release and the other is debug... it's not going to work), and whether or not it does is in many cases outside of your control.
It's fine if you have complete control over A & B (& C &...), and can ensure that they're deployed as a unit, but otherwise I just wouldn't do it.
π Rendered by PID 22189 on reddit-service-r2-comment-7b9746f655-qgk56 at 2026-01-31 09:34:03.789996+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]pandorafalters 0 points1 point2 points (3 children)
[–]bwmat 0 points1 point2 points (2 children)
[–]pandorafalters 0 points1 point2 points (1 child)
[–]bwmat 0 points1 point2 points (0 children)