devel/tl-expected 1.1.0_1 MidnightBSD
C++11/14/17 std::expected with functional-style extensions
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- CC0-1.0
- Categories
- devel
Description
Single header implementation of std::expected with functional-style extensions.
std::expected is proposed as the preferred way to represent object which will either have an expected value, or an unexpected value giving information about why something failed. Unfortunately, chaining together many computations which may fail can be verbose, as error-checking code will be mixed in with the actual programming logic. This implementation provides a number of utilities to make coding with expected cleaner.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/tl-expected | 1.1.0_1 |
| FreeBSD | devel/tl-expected | 1.3.1 |
| OpenBSD | devel/tl-expected | 1.3.1 |
| NetBSD | devel/tl-expected | 1.0.0 |
| DragonFly | devel/tl-expected | 1.1.0_1 |
| HardenedBSD | devel/tl-expected | 1.3.1 |
| GhostBSD | devel/tl-expected | 1.3.1 |
Install
Binary package:
mport install tl-expected
From mports:
cd /usr/mports/devel/tl-expected && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= tl-expected>0:devel/tl-expected
Dependencies
Required by 1
Configuration
Options name: devel_tl-expected
| Option | Default | Description |
|---|---|---|
| TESTS | off | Build tests |
- USES
- cmake
- Service scripts
- none
Files
distinfo 2
| File | Size | SHA256 |
|---|---|---|
| TartanLlama-expected-v1.1.0_GH0.tar.gz | 23747 | 1db357f46dd2b24447156aaf970c4c40a793ef12a8a9c2ad9e096d9801368df6 |
| catchorg-Catch2-v2.13.10_GH0.tar.gz | 662225 | d54a712b7b1d7708bc7a819a8e6e47b2fde9536f487b89ccbca295072a7d9943 |