expected
expected copied to clipboard
Backporting std::expected to C++17.
Results
2
expected issues
Sort by
recently updated
recently updated
newest added
C++17 needs additional comparison operator overloads with reversed parameters. For C++20 and newer it is unnecessary due to "synthesized three-way comparison" feature.
TLDR; Consider optimizing build-time for all single-argument templated constructors, and assignment operators by early-out with an SFINAE `!is_same` Long story: When instantiating a class that wraps (or derives from) `expected`,...