Use regular standard lib std::expected if available (C++23)
dok-net opened this issue · comments
Early C++23 support be some compilers includes std::expected already.
I've managed to get written but g++12 or 13 doesn't seem to be supporting anything with __cplusplus
define that is greater than 202002L
even when sending in -std=c++23
so it might require a newer g++ version to take effect. I manually compiled the #if
#else
sections to make sure they at least work.. but for now a standard build is still using the tl::expected
due to the __cplusplus
problem.