From e4ca75e70a55796d2e2f6d4680cb27e4f119e555 Mon Sep 17 00:00:00 2001
From: Beman Dawes error_category
synopsis
Class error_category
virtual members
Class error_category
non-virtual members
+ Class error_category
+ non-member functions
Class error_category
predefined objects
Class error_code
Class error_code
synopsis
@@ -243,8 +245,11 @@ types should create a single object of each such type.
bool operator< ( const error_category & rhs ) const;
};
- extern const error_category & posix_category;
- extern const error_category & system_category;
+ const error_category & get_system_category();
+ const error_category & get_posix_category();
+
+ static const error_category & system_category = get_system_category();
+ static const error_category & posix_category = get_posix_category();
}
}
@@ -304,11 +309,24 @@ const;
Throws: Nothing.
+error_category
+non-member functionsconst error_category & get_system_category();+
++Returns: A reference to a
+error_category
object + identifying errors originating from the operating system.Throws: Nothing.
+
const error_category & get_posix_category();+
+Returns: A reference to a
+error_category
object + identifying portable error conditions.Throws: Nothing.
+
error_category
predefined objectsPredefined objects posix_category
-and system_category
identify portable error conditions and system error
-codes, respectively.
Predefined objects system_category
+and posix_category
identify operating system error codes and portable error conditions, respectively.
error_code
The class error_code
describes an object used to hold error code
@@ -681,7 +699,7 @@ Distributed under the Boost Software License, Version 1.0. See
www.boost.org/LICENSE_1_0.txt
Revised -September 14, 2007 +September 19, 2007