Add error_code throws

[SVN r48577]
This commit is contained in:
Beman Dawes
2008-09-04 17:36:56 +00:00
parent a97517585c
commit d6446d1cfb
2 changed files with 9 additions and 0 deletions

View File

@ -382,6 +382,9 @@ namespace boost
};
// predefined error_code object used as "throw on error" tag
BOOST_SYSTEM_DECL extern error_code throws;
// non-member functions ------------------------------------------------//
inline bool operator!=( const error_code & lhs,

View File

@ -396,6 +396,12 @@ namespace boost
namespace system
{
BOOST_SYSTEM_DECL error_code throws; // "throw on error" special error_code;
// note that it doesn't matter if this
// isn't initialized before use since
// the only use is to take its
// address for comparison purposes
BOOST_SYSTEM_DECL const error_category & get_system_category()
{
static const system_error_category system_category_const;