Namespaces
Variants

std::error_category::error_category

来自 zh.cppreference.net
 
 
 
 
 
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 不可构造 添加默认构造函数