Topics/3 posts
#cpp
2025
Why std::expected matters for error handling
How C++23 std::expected and std::error_code work together: custom error categories, monadic chaining, and why an error category must be a single object…
Development
2023
Practical C++17 highlights by example
Short C++17 examples: structured bindings, if constexpr, CTAD, std::variant, std::optional, string_view, filesystem and parallel algorithms.
Development
std::variant: build an array of all alternatives
Use variant_size and variant_alternative with an index sequence to build a compile-time array holding one instance of each std::variant alternative.
Development