24 Jun
2026
24 Jun
'26
8:02 a.m.
Ruben Perez wrote:
4) Does capy::cond::canceled add anything vs. just using std::errc::operation_canceled?
No, it doesn't. It is there for consistency with our error types that don't have std spellings.
Would it make sense to just use the errc one and remove capy's? Maybe Peter can suggest something here?
It's usually better to use the standard condition when it exists, yes. That's because foreign error codes usually know how to compare equal against the standard one, but not against yours.