diff --git a/doc/reference.html b/doc/reference.html index 78182dd..a451c82 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -39,6 +39,7 @@ Introduction
Macros
+ Deprecated names
Header <boost/system/error_code.hpp>
Class error_category
   Class error_category synopsis
@@ -116,6 +117,45 @@ provided, so users may ignore these macros if they prefer.

Deprecated features are excluded. +

Deprecated names

+

In the process of adding Boost.System to C++0x standard library, some of the +names are being changed. To ease transition, Boost.System deprecates the old +names, but continues to provide them unless macro BOOST_SYSTEM_NO_DEPRECATED +is defined.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Old name, now deprecatedNew name
namespace posixnamespace errc
namespace posix_errornamespace errc
enum posix_errnoenum errc_t
get_posix_category()get_generic_category()
posix_categorygeneric_category
errno_ecatgeneric_category
native_ecatsystem_category

Header <boost/system/error_code.hpp>

<boost/system/error_code.hpp> synopsis

@@ -286,7 +326,7 @@ types should create a single object of each such type. virtual ~error_category(); virtual const char * name() const = 0; - virtual string message( error_code::value_type ev ) const = 0; + virtual string message( int ev ) const = 0; virtual error_condition default_error_condition( int ev ) const; virtual bool equivalent( int code, const error_condition & condition ) const; virtual bool equivalent( const error_code & code, int condition ) const; @@ -312,7 +352,7 @@ this subclause.

Returns: a string naming the error category.

Throws: Nothing.

-
virtual string message( error_code::value_type ev ) const=0;
+
virtual string message( int ev ) const=0;

Returns: A string that describes the error denoted by ev.

@@ -399,7 +439,7 @@ error_code synopsis error_code(); error_code( val, const error_category & cat ); template <class ErrorCodeEnum> - error_code( errorCodeEnum e, + error_code( ErrorCodeEnum e, typename enable_if<is_error_code_enum<ErrorCodeEnum> >::type* = 0); // modifiers: @@ -418,7 +458,7 @@ error_code synopsis private: int val_; // exposition only - const error_category & cat_; // exposition only + const error_category * cat_; // exposition only }; } } @@ -449,7 +489,7 @@ error_code constructors error_code modifiers
void assign( int val, const error_category & cat );
-

Postconditions: val_ == val && cat_ == cat.

+

Postconditions: val_ == val && cat_ == &cat.

Throws: Nothing.

template<typename ErrorCodeEnum>
@@ -470,9 +510,9 @@ error_code observers
 

Returns: val_.

Throws: Nothing.

-

error_category category() const;

+

const error_category & category() const;

-

Returns: cat_.

+

Returns: *cat_.

Throws: Nothing.

error_condition default_error_condition() const;
@@ -487,7 +527,7 @@ error_code observers

operator unspecified-bool-type() const;

-

Returns: if value() != value_type(), returns a value that will evaluate +

Returns: if value() != 0, returns a value that will evaluate true in a boolean context; otherwise, returns a value that will evaluate false in a boolean context. The value type returned shall not be convertible to int.

@@ -534,8 +574,8 @@ implementation specific. --end note ]

operator unspecified-bool-type () const; private: - int val_; // exposition only - const error_category & cat_; // exposition only + int val_; // exposition only + const error_category * cat_; // exposition only }; } } @@ -545,13 +585,13 @@ constructors
error_condition(); 

Effects: Constructs an object of type error_condition.

-

Postconditions: val_ == 0 and cat_ == generic_category.

+

Postconditions: val_ == 0 and cat_ == &generic_category.

Throws: Nothing.

-
error_condition( value_type val, const error_category & cat );
+
error_condition( int val, const error_category & cat );

Effects: Constructs an object of type error_condition.

-

Postconditions: val_ == val and cat_ == cat.

+

Postconditions: val_ == val and cat_ == &cat.

Throws: Nothing.

template <class ErrorConditionEnum>
@@ -564,9 +604,9 @@ constructors
 

Class error_condition modifiers

-
void assign( value_type val, const error_category & cat ); 
+
void assign( int val, const error_category & cat ); 
-

Postconditions: val_ == val and cat_ == cat.

+

Postconditions: val_ == val and cat_ == &cat.

Throws: Nothing.

template<typename ErrorConditionEnum>
@@ -582,14 +622,14 @@ modifiers
 
 

Class error_condition observers

-
value_type value() const;
+
int value() const;

Returns: val_.

Throws: Nothing

const error_category & category() const;
-

Returns: cat_.

+

Returns: *cat_.

Throws: Nothing.

string message() const;
@@ -694,7 +734,7 @@ bool operator!=( const error_condition & condition, const error_code & c
error_condition make_error_condition( errc::errc_t e );
-

Returns: error_condition( e, generic_category).

+

Returns: error_condition( static_cast<int>( e ), generic_category).

template <class charT, class traits>
@@ -727,11 +767,11 @@ application program interfaces.

system_error( error_code ec ); system_error( error_code ec, const char * what_arg ); system_error( error_code ec, const std::string & what_arg ); - system_error( error_code::value_type ev, const error_category & ecat, + system_error( int ev, const error_category & ecat, const char * what_arg ); - system_error( error_code::value_type ev, const error_category & ecat, + system_error( int ev, const error_category & ecat, const std::string & what_arg ); - system_error( error_code::value_type ev, const error_category & ecat); + system_error( int ev, const error_category & ecat); const error_code & code() const throw(); const char * what() const throw(); @@ -757,21 +797,21 @@ application program interfaces.

Postcondition: code() == ec
  && std::strcmp( this->runtime_error::what(), what_arg.c_str() ) == 0

-
system_error( error_code::value_type ev, const error_category & ecat,
+
system_error( int ev, const error_category & ecat,
              const char * what_arg );

Effects: Constructs an object of class system_error.

Postcondition: code() == error_code( ev, ecat )
  && std::strcmp( this->runtime_error::what(), what_arg ) == 0

-
system_error( error_code::value_type ev, const error_category & ecat,
+
system_error( int ev, const error_category & ecat,
              const std::string & what_arg );

Effects: Constructs an object of class system_error.

Postcondition: code() == error_code( ev, ecat )
  && std::strcmp( this->runtime_error::what(), what_arg.c_str() ) == 0

-
system_error( error_code::value_type ev, const error_category & ecat );
+
system_error( int ev, const error_category & ecat );

Effects: Constructs an object of class system_error.

Postcondition: code() == error_code( ev, ecat )
@@ -791,7 +831,7 @@ application program interfaces.


Revised -October 08, 2008 +October 11, 2008

© Copyright Beman Dawes, 2006, 2007, 2008