std::error_...ror_category(3)
okay so we're on the std::error_...ror_category(3) page in the C++ Standard Library manual, and it's literally all about std::error_category::error_category β constructor lore, bestie β¨
πΈ NAME πΈ
std::error_category::error_category β and yes, the NAME section says std::error_category::error_category again. Repetition is iconic, no cap π
β¨ Synopsis β¨
constexpr error_category() noexcept; (1) (since C++11)
error_category( const error_category& ) = delete; (2) (since C++11)
- Constructs the error category object. slay.
- Copy constructor is deleted.
error_categoryis neitherMoveConstructiblenorCopyConstructible. so no copying, bestie, it's giving "you may look but you may not duplicate" π«Ά
π Parameters π
(none) β literally zero parameters. no arguments, no stress, the void is serving πΈ
π§ Defect reports π§
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR:
LWG 2145- Applied to:
C++11 - Behavior as published:
error_categorywas not constructible - Correct behavior: default constructor added
- Applied to:
periodt, the default constructor got added and the timeline was fixed π
that's the whole page, bestie π«Ά β sourced from http://cppreference.com, dated 2024.06.10, and filed under the std::error_...ror_category(3) manual title. bye π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms