#include "ErrorCode.h" std::error_code makeErrorCode(ErrorCode code){ return {static_cast(code), ErrorCategory::instance()}; }