From 2953464e994b467592b436cdc99e7fb3e1b16953 Mon Sep 17 00:00:00 2001
From: Beman Dawes
The value of each posix_errno
constant shall be the same as the
+
The value of each errc_t
constant shall be the same as the
value of the <cerrno>
macro shown in the above synopsis.
Users may specialize is_error_code_enum
and
is_error_condition_enum
templates to indicate that a type is eligible for
@@ -290,10 +290,10 @@ types should create a single object of each such type.
};
const error_category & get_system_category();
- const error_category & get_posix_category();
+ const error_category & get_generic_category();
static const error_category & system_category = get_system_category();
- static const error_category & posix_category = get_posix_category();
+ static const error_category & generic_category = get_generic_category();
}
}
@@ -316,7 +316,7 @@ this subclause.
Returns: error_condition( ev, *this )
.
@@ -361,7 +361,7 @@ non-member functions identifying errors originating from the operating system.[--Note: Derived classes will typically convert
ev
- to some portableerror_category
, such asposix_category
, + to some portableerror_category
, such asgeneric_category
, and return it as anerror_condition
for that category. --end note]
Throws: Nothing.
-const error_category & get_posix_category();+
const error_category & get_generic_category();
Returns: A reference to a
@@ -370,7 +370,7 @@ non-member functionserror_category
object identifying portable error conditions.Class
error_category
predefined objectsPredefined objects
+andsystem_category
-andposix_category
identify operating system error codes and portable error conditions, respectively.generic_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 @@ -454,7 +454,7 @@ error_code modifiers
void clear();
-postcondition:
+value() == 0 && category() == posix_category
postcondition:
value() == 0 && category() == generic_category
error_code
observerserror_condition();
Effects: Constructs an object of type
-error_condition
.Postconditions:
+val_ == 0 and cat_ == posix_category
.Postconditions:
val_ == 0 and cat_ == generic_category
.Throws: Nothing.
error_condition( value_type val, const error_category & cat );@@ -571,7 +571,7 @@ modifiers
void clear();
-postcondition:
+value() == 0 && category() == posix_category
postcondition:
value() == 0 && category() == generic_category
error_condition
observersThrows: Nothing.
-error_code make_error_code( posix_error::posix_errno e );+
error_code make_error_code( errc::errc_t e );
--Returns:
+error_code( e, posix_category)
.Returns:
error_code( e, generic_category)
.
error_condition make_error_condition( posix_error::posix_errno e );+
error_condition make_error_condition( errc::errc_t e );
-Returns:
+error_condition( e, posix_category)
.Returns:
error_condition( e, generic_category)
.
template <class charT, class traits> @@ -743,7 +743,7 @@ Distributed under the Boost Software License, Version 1.0. See www.boost.org/LICENSE_1_0.txtRevised -November 12, 2007 +June 24, 2008