Skip to content

Comparing capy::error::canceled with std::errc::operation_canceled should pass #267

@anarthal

Description

@anarthal

The following fails:

std::error_code ec = boost::capy::error::canceled;
std::error_condition cond{std::errc::operation_canceled};
BOOST_TEST(ec == cond);

According to @pdimov, this should work. At the end of the day, capy::cond::canceled is equivalent to std::errc::operation_canceled. One possible option would be to remove capy::cond::canceled completely, and replace it by std::errc::operation_canceled. This would require overriding default_error_condition in the category, rather than equivalent.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions