outcome
Provides very lightweight outcome<T> and result<T> (non-Boost edition) (by ned14)
Experimental Boost.DI
C++14 Dependency Injection Library (by boost-ext)
outcome | Experimental Boost.DI | |
---|---|---|
9 | 8 | |
662 | 1,103 | |
- | 1.5% | |
6.9 | 3.5 | |
1 day ago | 20 days ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
outcome
Posts with mentions or reviews of outcome.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-26.
-
How to define API stability for a C++ library?
https://github.com/ned14/outcome/tree/develop/abi-compliance uses both in a CI pass to ensure Outcome never changes anything which breaks either API or ABI with earlier versions.
-
What are some cool modern libraries you enjoy using?
outcome and/or expected
-
Outcome enters sustaining phase, goes ABI stable
A "Sample Usage" appears on the front page of the docs: https://ned14.github.io/outcome/
-
Does Anyone Use Boost Outcome?
I recently came across boost outcome as I was searching for a better error handling method. It took me a minute to get a hang of it but now I love it. After creating my own policy and a few aliases for easier use.
-
Is this error handling strategy good?
std::optional and std::variant can be a bit awkward to use in this scenario, though. Consider a dedicated type like boost::outcome (standalone versions) or one of the implementations of the proposed std::expected.
-
Modern C++ "result" type based on Swift / Rust
Minimum possible compile time impact is a key goal of https://github.com/ned14/outcome. We ship a single header edition which only includes the low impact standard headers as listed at https://github.com/ned14/stl-header-heft. We also don't use union storage for non-TC non-MB types in order to avoid complex metaprogramming execution by the compiler per instantiation.
-
C++ Memory Safety
It's really weird that I wrote the above, and then this bug was reported to Outcome: https://github.com/ned14/outcome/issues/244. Here is my exact complaint about lack of lifetime tracking in C++.
Experimental Boost.DI
Posts with mentions or reviews of Experimental Boost.DI.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-18.
-
What are some cool modern libraries you enjoy using?
I love: https://github.com/boost-ext/di for dependency injection
-
[C++20] New way of meta-programming?
https://github.com/boost-ext/di (To detect constructor parameters and inject dependencies without runtime dispatch)
-
Dependency injection
I was looking to try boost.di for some time, looks nice. https://boost-ext.github.io/di/
- Dependency injection with c++
-
Architecture of a Qt application
Things like Dependency Injection/Inversion are a little more cumbersome in C++ but certainly can be done, and I believe there's libraries for that as well (found a couple searching around, like fruit and boost-ext di ).
-
Jodd – The Unbearable Lightness of Java
Dependency injection does not have to be dynamic, it can totally be done at compile time. Boost DI is an example: https://boost-ext.github.io/di/
- DI in c++ hurt by lack of good libraries?
-
Top five C/C++ things/tips/tricks you wish you had known earlier and are now used very often
Funny you mention dependency injection, proposed Boost.DI shall be up for Boost peer review probably in March. https://boost-ext.github.io/di/
What are some alternatives?
When comparing outcome and Experimental Boost.DI you can also consider the following projects:
leaf - Lightweight Error Augmentation Framework
kangaru - 🦘 A dependency injection container for C++11, C++14 and later
C++ Format - A modern formatting library
American Fuzzy Lop - american fuzzy lop - a security-oriented fuzzer
stb - stb single-file public domain libraries for C/C++
c-smart-pointers - Smart pointers for the (GNU) C programming language
Serial Communication Library - Cross-platform, Serial Port library written in C++
gcc-poison - gcc-poison
ZXing - ZXing ("Zebra Crossing") barcode scanning library for Java, Android
outcome vs leaf
Experimental Boost.DI vs kangaru
outcome vs C++ Format
Experimental Boost.DI vs American Fuzzy Lop
outcome vs stb
Experimental Boost.DI vs c-smart-pointers
outcome vs Serial Communication Library
Experimental Boost.DI vs gcc-poison
outcome vs ZXing
Experimental Boost.DI vs stb
outcome vs American Fuzzy Lop
Experimental Boost.DI vs C++ Format