Add `is` and `as` support for `std::expected` (v2)
- Update
cpp2util.hto supportisandasforstd::expected - Add new
pure2-expected-is-asregression test
This replaces the original PR #954; I couldn't successfully rebase it onto the updated changes in main so I gave up and created a new PR!
CC @filipsajdak
EDIT - The macOS build job is a spurious failure (not found for compiler: 'clang++'). I'm not sure why this happens but I've seen it a few times now. I don't have permission to retry the job in this repo, but in my own fork I just retry the job and it succeeds.
EDIT 2 - See PR #972 for the spurious macOS job failure
@bluetarpmedia i will take a look after a decision on how to implement is and as functions. https://github.com/hsutter/cppfront/pull/701#issuecomment-1933012987
I think you may have accidentally moved the built-in
ascode section.
Thanks, restored now!