Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49717 - trunk/boost/system
From: bdawes_at_[hidden]
Date: 2008-11-13 11:05:49


Author: bemandawes
Date: 2008-11-13 11:05:49 EST (Thu, 13 Nov 2008)
New Revision: 49717
URL: http://svn.boost.org/trac/boost/changeset/49717

Log:
System: add deprecated get_posix_category() to fix ticket #2461
Text files modified:
   trunk/boost/system/error_code.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/system/error_code.hpp
==============================================================================
--- trunk/boost/system/error_code.hpp (original)
+++ trunk/boost/system/error_code.hpp 2008-11-13 11:05:49 EST (Thu, 13 Nov 2008)
@@ -207,6 +207,7 @@
     
 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     // deprecated synonyms
+ inline const error_category & get_posix_category() { return get_generic_category(); }
     static const error_category & posix_category = get_generic_category();
     static const error_category & errno_ecat = get_generic_category();
     static const error_category & native_ecat = get_system_category();
@@ -214,7 +215,7 @@
 
     // class error_condition -----------------------------------------------//
 
- // error_conditions are portable, error_codes are system or lib specific
+ // error_conditions are portable, error_codes are system or library specific
 
     class error_condition
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk