Releases: bitwizeshift/result
Releases · bitwizeshift/result
Official Release (v1.0.0)
This is the official release of the Result library!
This provides a result-API similar to other modern languages like Rust and Swift
The full API reference for this version can be found here: v1.0.0 API
Features
result<T,E>for representing fallible typesresult<T&,E>for fallible reference typesresult<void,E>for fallible non-value types (e.g.voidreturns)failure<T>for disambiguation for error typesfailure<T&>for referential access ofTtypes- Support for comparison operators of
resultandfailuretypes - Support for
std::hashforresultandfailuretypes - Support for monadic functions for
result(map,flat_map,map_error,flat_map_error,value_or,and_then) - Full
constexprsupport forresultandfailure(moreconstexprsupport in C++14 and above) - Support for CTAD for
failuretypes when working in C++17
Compatibility
This release is compatible with any C++11 compiler or later.
In particular, it's known to be compatible with the following compilers:
- GCC: 5, 6, 7, 8, 9, 10
- Clang: 3.5, 3.6, 3.7, 3.8, 3.9, 4, 5, 6, 7, 8, 9, 10, 11
- Apple Clang (Xcode) 10.3, 11.2, 11.3, 12.3
- Visual Studio 2017[1], 2019
[1] Visual Studios 2017 is officially supported, though toolchain 14.16 has some issues properly compiling map_error due to insufficient support for SFINAE.
Pre-release v0.0.1+test7 -- for Conan
Pre-release to test conan release workflow
Pre-release v0.0.1 -- Conan test
This pre-release is to test the conan deployment workflow.