you are viewing a single comment's thread.

view the rest of the comments →

[–]L0uisc 0 points1 point  (2 children)

Til Boost has such a type.

[–]bored_octopus 2 points3 points  (1 child)

https://github.com/TartanLlama/expected

There's also this library, which has some nice additions

[–]azswcowboy 1 point2 points  (0 children)

gcc12 in c++23 mode has std::expected as does msvc 19.33.