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.
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::canceledis equivalent tostd::errc::operation_canceled. One possible option would be to removecapy::cond::canceledcompletely, and replace it bystd::errc::operation_canceled. This would require overridingdefault_error_conditionin the category, rather thanequivalent.