Five Issues with std::expected and How to Fix Them - Vitaly Fanaskov - C++Now 2025 @CppNow
Five Issues with std::expected and How to Fix Them - Vitaly Fanaskov - C++Now 2025  @CppNow
Uploaded October 2025 | Updated December 2026, 3 hours ago
cppnow.org
---

Five Issues with std::expected and How to Fix Them - Vitaly Fanaskov - C++Now 2025
---

std::expected is a powerful abstraction for error handling and chaining computations introduced in the C++ 23 standard. Even though this abstraction is relatively new in the C++ ecosystem, it already has several issues, particularly when used as the primary error-handling mechanism in large code bases.
This talk will focus on the most significant practical challenges faced when working with std::expected, providing insights into common pitfalls and offering potential solutions. While some of these challenges are addressed in separate libraries, others are not. Much of the functionality discussed in this talk is not available in the standard library. However, I’ll demonstrate real-world code samples and point to open-source helper utilities that address some of these gaps.
This talk will be useful for software engineers looking to understand the limitations of std::expected, explore possible workarounds, and even contribute to the evolution of this abstraction by submitting proposals for future improvements.
---

Slides: github.com/boostcon/cppnow_presentations_2025/blob/main/Presentations/Five_Issues_With_STD_Expected.pdf

think-cell develops one of the world’s leading PowerPoint applications, with C++ at the core of everything we build, from layout algorithms to deep integration with Microsoft Office. Interested in working on challenging C++ problems with real-world impact? Explore our open roles: think-cell.com/en/career/tech---

Vitaly Fanaskov

Vitaly is a principal software engineer at reMarkable. He has been designing and developing software using C++ and some other languages for over 10 years. Primary areas of interest are design and development of frameworks and libraries, modern programming languages, and functional programming. Vitaly holds a PhD in Computer Science from the Moscow State Mining University.
---

C++Now 2026 - 4th May - 8th May
C++Now is an annual onsite international C++ programming and coding conference held in Aspen, Colarado. For all C++ developers, C++ software engineers and those involved with the C++ language, CppNow provides an indepth and technical content provided by the best and brightest C++ experts of the C++ world.
Annual CppNow Conference - cppnow.org
linkedin.com/company/cppnow
twitter.com/cppnow
facebook.com/CppNow
reddit.com/r/CppNow
https://mastodon.social/@cppnow
Video Sponsors: think-cell and Bloomberg
---

Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---

#standardlibrary #abstraction #boost #cpp #cplusplus #programming #coding #softwareengineering #softwaredeveloper #code #cplusplusprogramming #cplusplustutorial #cplus
Five Issues with std::expected and How to Fix Them - Vitaly Fanaskov - C++Now 2025From Template Metaprogramming to User Convenience - API Design Stories - Ruslan Arutyunyan - C++NowC++ in the Realtime Embedded Context - A Case Study - Shin Umeda - C++Now 2026A Path to Practically Safe C++ - Yitzhak Mandelbaum - C++Now 2026The Sender/Receiver Framework in C++ - Getting the Lazy Task Done - Dietmar Kühl - C++Now 2025Lightning Talk: Hilbert’s Hotel - the Untold Bits - Tobias Loew - CppNow 2023C++ Overload Inspector - A Tool for Analyzing and Profiling Overloaded Function Calls - C++Now 2024Computing Correctness | Is your C++ Code Correct? - Nick Waddoups - C++Now 2025How to Pinpoint Runtime Errors in Mixed C++ & Rust Code For Busy Engineers - Steve Barriault  C++NowRappel: Compose Algorithms, Not Iterators - Googles Alternative to Ranges - C++Now 2024A Practitioner’s Guide to Writing std-Compatible Views in C++ - Zach Laine - C++Now 2025Lightning Talk: Into the Lambdaverse — The Beginning - Timur Doumler and Fedor Pikus - CppNow 2023
CppNow |

Five Issues with std::expected and How to Fix Them - Vitaly Fanaskov - C++Now 2025

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER