Namespaces
Variants

std::error_category:: error_category

From cppreference.net
Utilities library
constexpr error_category ( ) noexcept ;
(1) (自 C++11 起)
error_category ( const error_category & ) = delete ;
(2) (自 C++11 起)
1) 构造错误类别对象。
2) 复制构造函数被删除。 error_category 既非 MoveConstructible 亦非 CopyConstructible

参数

(无)

缺陷报告

以下行为变更缺陷报告被追溯应用于先前发布的C++标准。

缺陷报告 适用范围 发布时行为 正确行为
LWG 2145 C++11 error_category 不可构造 添加默认构造函数