1372. Adopt recommended practice for standard error categories

Section: [syserr.errcat.objects] Status: C++11 Submitter: BSI Opened: 2010-08-25 Last modified: 2016-01-28 10:19:27 UTC

Priority: Not Prioritized

View all other issues in [syserr.errcat.objects].

View all issues with C++11 status.


Addresses GB-76

The C++0x FCD recommends, in a note (see, that users create a single error_category object for each user defined error category and specifies error_category equality comparsions based on equality of addresses ( The Draft apparently ignores this when specifying standard error category objects in section, by allowing the generic_category() and system_category() functions to return distinct objects for each invocation.

[ Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102. ]

Proposed resolution:

Append a new sentence to [syserr.errcat.objects]/1, and append the same sentence to

All calls of this function return references to the same object.