Gentle introduction to writing code with simple success-or-failure return types.
- TRY operations
- Inspecting result
Success-or-failure return types where failure can take two forms, expected/handled failure and unexpected/abort failure.
- Inspecting outcome
Describes the concept of NoValuePolicy and how to use no-value policies.
- A custom no-value policy
- Built-in policies
Success-or-failure return types where extra information in addition to the error code accompanies failure.
- The Filesystem TS
- Upgrading the Filesystem TS
- Auto-throwing filesystem_error
Result returning constructors
How to metaprogram construction of objects which use result
to return failure instead of throwing a C++ exception.
- Two phase construction
- A file handle
- Phase 2 construction
- Phase 3
Intercepting useful events such as initial construction, copies and moves so you can capture backtraces, fire debug breakpoints etc.
- Keeping state
- ADL bridging
- Hook result
- Custom exception ptr
- Hook outcome
from C code
Interacting with result
returning C++ functions from C code.
- Example C++ function
- Calling it from C
Interoperating with std::expected
and other ValueOrError concept matching types.
- Incommensurate E types
- ValueOrError Concept
- The HTTP library
- The HTMLTidy library
- The File I/O library
- The Application
- Mapping the HTTP library into the Application 1⁄2
- Mapping the HTTP library into the Application 2⁄2
- Mapping the File I/O library into the Application
- Mapping the HTMLTidy library into the Application
- In use