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());
    }
}
示例#2
0
文件: main.cpp 项目: CCJY/coliru
 TestCondition(std::error_condition const & err) noexcept :
     std::error_condition(err.value(), err.category()),
     error(err.value()),
     cat(err.category())
 { }