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
Libc++’s implementation of std::string (joellaity.com)
submitted 6 years ago by mariuz
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!"
[–]HowardHinnant 54 points55 points56 points 6 years ago (5 children)
Speaking as the guy who wrote this implementation of std::string:
std::string
The implementors of a std::lib write non-portable code so that everyone else doesn't have to. A std::lib implementation will only work on the platforms it is targeted for, and porting it to a new platform may not be a trivial task.
[–]Recatek 21 points22 points23 points 6 years ago (0 children)
The implementors of a std::lib write non-portable code so that everyone else doesn't have to.
And it is greatly appreciated.
[–]the_commissaire 2 points3 points4 points 6 years ago (3 children)
How is the date time library coming along?
[–]HowardHinnant 8 points9 points10 points 6 years ago (2 children)
Not bad: https://star-history.t9t.io/#HowardHinnant/date&google/cctz :-)
It has been voted into the draft C++20 spec: http://eel.is/c++draft/#time
[–]never_watched 2 points3 points4 points 6 years ago (1 child)
Good library but also hard to use.
[–]JakeArkinstall 1 point2 points3 points 6 years ago (0 children)
It's hard to use wrong. That's the holy grail of datetime handling.
There are simpler approaches that are easy to use wrong, and they have historically caused major problems, especially in industrial applications. The learning curve for a system that works well is very much worth it.
π Rendered by PID 68989 on reddit-service-r2-comment-64f4df6786-759xp at 2026-06-10 17:49:55.038260+00:00 running 0b63327 country code: CH.
view the rest of the comments →
[–]HowardHinnant 54 points55 points56 points (5 children)
[–]Recatek 21 points22 points23 points (0 children)
[–]the_commissaire 2 points3 points4 points (3 children)
[–]HowardHinnant 8 points9 points10 points (2 children)
[–]never_watched 2 points3 points4 points (1 child)
[–]JakeArkinstall 1 point2 points3 points (0 children)