This is a generic Option and Result type based on c++ std::variant, similar to Option and Result<T,E> in Rust.
The library cpptrace is used to automatically track the stack for easy error checking instead of using exceptions
- Integrate cpptrace into your own library
- just include the option.hpp or result.hpp
xmake
xmake run test_option
xmake run test_result