Ask HN: Good C++ code bases to read?
Here are a couple of expertly-written C++17/C++20 repositories:<p><a href="https://github.com/hanickadot/compile-time-regular-expressions" rel="nofollow">https://github.com/hanickadot/compile-time-regular-expressio...</a><p><a href="https://github.com/nlohmann/json" rel="nofollow">https://github.com/nlohmann/json</a><p>If you've not written C++ code before, it can take a while to catch up with the latest developments in C++23. Start with C, and learn these, in approximately the specified order:<p>1. lvalue references.<p>2. Constructors, destructors, and inheritance.<p>3. Annotations such as const and noexcept on members.<p>4. Simple type templates, and value templates.<p>5. constexpr, std::move, and rvalue references.<p>6. Type traits and std::enable_if.<p>7. Concepts.<p>Once you learn the core language features, learning the various data structures/algorithms in `std` should just be a matter of looking them up in cppreference, and using them over and over again.<p>Good luck.