From e4ca75e70a55796d2e2f6d4680cb27e4f119e555 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Wed, 19 Sep 2007 19:30:23 +0000 Subject: [PATCH] Add get_posix_category, get_system_category, to solve order-of-initialization issues [SVN r39396] --- doc/reference.html | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/doc/reference.html b/doc/reference.html index 9160bd6..315aedd 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -43,6 +43,8 @@    Class 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.

+

Class error_category +non-member functions

+
const 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.

+

Class error_category predefined objects

-

Predefined 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.

Class 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