Re: [Capy review] Some questions

Peter Dimov via Boost <[email protected]> Wed, 24 Jun 2026 11:02:46 +0300
Newsgroups gmane.comp.lib.boost.devel
Message-ID <[email protected]>
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.


_______________________________________________
Boost mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected]/message/SLZI72GUZKIJILFN6P5OVGQ5VM7UOVLL/