std::error_...ror_category(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

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)
  1. Constructs the error category object. slay.
  2. Copy constructor is deleted. error_category is neither MoveConstructible nor CopyConstructible. 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_category was not constructible
    • Correct behavior: default constructor added

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