Zigi makes context switching a thing of the past. It monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Learn more →
Top 23 C++ header-only Projects
JSON for Modern C++Project mention: Good repos for beginners to browse that follow best modern C++ practices (including testing, static analysis etc...) | reddit.com/r/cpp | 2022-11-24
I always recommend https://github.com/nlohmann/json
Fast C++ logging library.Project mention: I want to slightly change the behavior of the std::cout | reddit.com/r/cpp_questions | 2022-10-21
Typically, you'd use a logging library to handle stuff like this. I personally like spdlog. You use different logger functions (info, warn, error) and depending on what level you have set for the logger (or globally) some of the functions become no-ops. E.g. When not running in verbose mode all spdlog::info() do nothing.
Free webinar: The Power of Clean C++. Are you ready to take your C++ code to the next level? Join Sonar on December 7th for our live webinar as we discuss how to get your code clean - and stay clean - with minimal effort and without being overloaded with warnings. Register now!
A C++ header-only HTTP/HTTPS server and client libraryProject mention: Issues with libssl on Mac | reddit.com/r/cpp_questions | 2022-11-14
I'm new to C++, and have been trying to make a simple HTTP request. I stumbled on cpp-httplib and decided to try it out.
Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much moreProject mention: Enums In C++, Choice is Oft Beguiled | reddit.com/r/cpp | 2022-11-18
Now you can make use of operator| and operator&. Here is the full source. It'll be a bit better when it's ported to C++20 with concepts, as the SFINAE produces the usual ugly error messages with enable_if.
Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)Project mention: C++ to Browser JS Framework Recommendations | reddit.com/r/cpp | 2022-08-06
Open socket, serve a html page, implement GET/PUT or find framework that do https://github.com/ipkn/crow
OpenGL Mathematics (GLM)Project mention: how to include glm with cmake (and other headers / static libraries) | reddit.com/r/learnprogramming | 2022-10-02
But now I'm kinda stuck on glm. I downloaded it from the official website and grabbed the glm subdirectory with the header files. (https://github.com/g-truc/glm/releases/tag/0.9.9.8) It also contains a CMakeLists.txt which i should be able to include in my project CMakeLists.txt.
✔️The smallest header-only GUI library(4 KLOC) for all platformsProject mention: Does anyone have feedback on working with GuiLite? | reddit.com/r/cpp_questions | 2022-04-08
Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.
The fastest feature-rich C++11/14/17/20 single-header testing frameworkProject mention: Memory Safety in the D Programming Language (Part 2 of N) | reddit.com/r/programming | 2022-10-08
This is, honestly, super easy to get going. Nowadays you have a ton of libraries and more-than-decent build systems. With Meson/CMake and Conan/Vcpkg I can set up a project with testing in 3 minutes. Also, I think that at the end of the day you want your tests to live somewhere else. But if you want to embed them, you also have https://github.com/doctest/doctest.
Features: - Functional style. Inspired by  and React - Simple and elegant syntax (in my opinion). - Support for UTF8 and fullwidth chars (→ 测试). - No dependencies. - Cross platform. Linux/mac (main target), Windows (experimental thanks to contributors), - WebAssembly. - Keyboard & mouse navigation. Operating systems: - linux emscripten - linux gcc - linux clang - windows msvc - mac clangProject mention: Cross Platform Terminal UI Toolkit for .NET | news.ycombinator.com | 2022-10-13
On the C++ front, I've been using this and love it - https://github.com/ArthurSonzogni/FTXUI - it also has wasm target, so may target the web.
I'm regular Far Commander on Windows, and Midnight Commander, also known as mc on Linux/OSX. In fact my "Command-Prompt" on Windows is always FAR (this comes with certain limitations, but I'm so used to it, I can't do my normal work without it). I could never get into the Explorer, and only use it in rare cases.
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate codeProject mention: Error: Boost bimap can't convert const CompatibleKey to Key& | reddit.com/r/cpp_questions | 2022-11-22
Also if you want to convert enum members to string representation I suggest you just use magic_enum instead, much smaller dependency.
Compile Time Regular Expression in C++Project mention: Regex is comically slow. High performance alternatives? (Pattern matching for validation) | reddit.com/r/cpp_questions | 2022-11-19
Activity Indicators for Modern C++Project mention: Libraries | reddit.com/r/cpp_questions | 2021-12-07
Visual Python and C++ nanosecond profiler, logger, tests enabler
Functional Programming Library for C++. Write concise and readable C++ code.Project mention: C++20 Ranges The Key Advantage - Algorithm Composition | reddit.com/r/cpp | 2022-03-28
I use a library called FunctionalPlus daily.
Parsing Expression Grammar Template LibraryProject mention: What are some cool modern libraries you enjoy using? | reddit.com/r/cpp | 2022-09-18
I like PEGTL
Portable, simple and extensible C++ logging libraryProject mention: Show timestamp before every output line in Qt Application Output. | reddit.com/r/QtFramework | 2022-09-22
Header-only, event based, tiny and easy to use libuv wrapper in modern C++ - now available as also shared/static library!
Argument Parser for Modern C++Project mention: argparse v2.9 released - now with support for subcommands, nargs, prefix_chars, metavar, parse_known_args, improved help messages and more | reddit.com/r/cpp | 2022-09-22
Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enumProject mention: Added reflection to C++ just to make my game work. | reddit.com/r/gamedev | 2022-10-27
In general, nameof for reflection
Header-only C++ binding for libzmqProject mention: Any good lightweight c++ local socket library for embedded Linux? | reddit.com/r/cpp_questions | 2022-05-10
Maybe I am not understanding it correctly, the https://github.com/zeromq/libzmq is GPL v3, and header only file is https://github.com/zeromq/cppzmq MIT license? So I can use the header only library and I don't need to open source my code?
Your standard library for metaprogramming
Cross-platform C++11 header-only library for memory mapped file IO (by mandreyel)Project mention: Why are people willing to pay 100$ a year for an IDE? | reddit.com/r/Cplusplus | 2022-09-27
C++ compile-time enum to string, iteration, in a single header fileProject mention: What are some cool modern libraries you enjoy using? | reddit.com/r/cpp | 2022-09-18
The context switching struggle is real. Zigi makes context switching a thing of the past. It monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack!
C++ header-only related posts
Pack C++ structs into a compact bytearray without any macros or boilerplate code
1 project | news.ycombinator.com | 26 Nov 2022
Regex is comically slow. High performance alternatives? (Pattern matching for validation)
7 projects | reddit.com/r/cpp_questions | 19 Nov 2022
11 projects | reddit.com/r/cpp | 18 Nov 2022
Enums In C++, Choice is Oft Beguiled
1 project | reddit.com/r/cpp | 18 Nov 2022
pptest (testing library) github repo
1 project | reddit.com/r/dspp_lib | 18 Nov 2022
If you limit an std::string in a class to be < 15 characters, can you assume that any time the string is read it will stay on the stack due to SSO?
3 projects | reddit.com/r/cpp | 8 Nov 2022
EnTT v3.11.0 is out: Gaming meets Modern C++
2 projects | reddit.com/r/gamedev | 9 Nov 2022
A note from our sponsor - Zigi
www.zigi.ai | 26 Nov 2022
What are some of the best open-source header-only projects in C++? This list will help you:
|10||Magic Enum C++||3,222|