#Error Handling

1 article

std::expected on Bare Metal: Error Handling Without Exceptions

The `-fno-exceptions` build flag and `int` return codes. Every embedded C++ codebase I've worked on has both, and the pattern is always the same: return an error code, take an output pointer, hope the

Modern C++ // dev Apr 20, 2026 8 min read