int main() { { const std::error_condition ec1 = std::make_error_condition(std::io_errc::stream); assert(ec1.value() == static_cast<int>(std::io_errc::stream)); assert(ec1.category() == std::iostream_category()); } }
TestCondition(std::error_condition const & err) noexcept : std::error_condition(err.value(), err.category()), error(err.value()), cat(err.category()) { }