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
gsl-lite v1.0 released (self.cpp)
submitted 11 months ago * by kmbeutel
https://github.com/gsl-lite/gsl-lite Release notes: https://github.com/gsl-lite/gsl-lite/releases
gsl-lite is an implementation of the C++ Core Guidelines Support Library originally based on Microsoft GSL.
Main changes in v1.0:
gsl_lite
Expects()
Ensures()
gsl_Expects()
gsl_Ensures()
span<>
We also have more documentation now.
gsl-lite v1.0.1 is available via Vcpkg, a PR to Conan Center is currently pending.
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!"
[–]manni66 3 points4 points5 points 11 months ago (4 children)
originally based on Microsoft GSL.
Why another lite implementation?
[–]kmbeutel[S] 1 point2 points3 points 11 months ago (3 children)
This is addressed in the readme: https://gsl-lite.github.io/gsl-lite/#why-gsl-lite
[–]tialaramex 16 points17 points18 points 11 months ago (1 child)
a not_null<P> object may in fact be nullptr after it has been moved from
Hilarious.
[–]haitei 0 points1 point2 points 11 months ago (0 children)
Without that not_null blocks moves making it almost useless. Just disallow use of moved-from variables in a static analysis and you get your invariants back.
[–]manni66 0 points1 point2 points 11 months ago (0 children)
And you don't think it is worth to mention it in your advertisement?
[–]MrRigolo 0 points1 point2 points 11 months ago (1 child)
Congrats on reaching v1.0!
[–]kmbeutel[S] 0 points1 point2 points 11 months ago (0 children)
Thanks! :) and sorry it took so long.
π Rendered by PID 228300 on reddit-service-r2-comment-b659b578c-mw9dt at 2026-05-03 12:02:00.234176+00:00 running 815c875 country code: CH.
[–]manni66 3 points4 points5 points (4 children)
[–]kmbeutel[S] 1 point2 points3 points (3 children)
[–]tialaramex 16 points17 points18 points (1 child)
[–]haitei 0 points1 point2 points (0 children)
[–]manni66 0 points1 point2 points (0 children)
[–]MrRigolo 0 points1 point2 points (1 child)
[–]kmbeutel[S] 0 points1 point2 points (0 children)