std::error_category::error_category

From cppreference.com
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)
 
 
 
constexpr error_category() noexcept;
(1) (since C++11)
error_category( const error_category& ) = delete;
(2) (since C++11)
1) Constructs the error category object.
2) Copy constructor is deleted. error_category is neither MoveConstructible nor CopyConstructible.

Parameters

(none)

Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

DR Applied to Behavior as published Correct behavior
LWG 2145 C++11 error_category was not constructible default constructor added