gcc/libstdc++-v3/include/std
Chris Fairles 92010a793b system_error (is_error_code_enum): Specialize for errc.
2008-10-22  Chris Fairles  <cfairles@gcc.gnu.org>

        * include/std/system_error (is_error_code_enum): Specialize for errc.
        (error_category::error_category): Defaulted and protected.
        (error_category::~error_category): New, virtual.
        (error_category::error_category(const error_category&),
        error_category::operator=(const error_category&)): Deleted.
        (get_system_category, get_posix_category): Remove (DR 890).
        (system_category): External linkage (DR 890).
        (posix_category): Remove.
        (generic_category): Add. External linkage (DR 890).
        (error_code::error_code<>(_ErrorCodeEnum)): Use generic_category.
        (error_code::clear, error_code::operator=<>(_ErrorCodeEnum)): Forward to
        error_code::assign, use generic_category.
        (error_condition::error_condition,
        error_condition::error_condition<>(_ErrorConditionEnum)): Use
        generic_category.
        (error_condition::clear,
        error_condition::operator=<>(_ErrorConditionEnum)): Forward to
        error_code::assign, use generic_category.
        (make_error_code, make_error_condition): Define in namespace std.
        * include/std/mutex (unique_lock<>::lock, unique_lock<>::try_lock,
        unique_lock<>::try_lock_until<>(duration),
        unique_lock<>::try_lock_for<>(duration)): Replace posix_error with errc.
        * src/system_error.cc (system_error_category, generic_error_category):
        New.
        (gnu_error_category): Remove.
        (get_system_category, get_posix_category): Remove (DR 890).
        (system_category, generic_category): Define.
        * src/functexcept.cc (__throw_system_error): Use generic_category.
        * config/abi/pre/gnu.ver: Export system_category and generic_category,
        remove get_system_category and get_generic_category (DR 890).
        * config/os/generic/error_constants.h (posix_errno): Rename to errc, use
        enum class type. Fix spelling.
        * config/os/mingw32/error_constants.h (posix_errno): Likewise.
        * testsuite/19_diagnostics/error_code/cons/1.cc: Use errc and
        generic_category.
        * testsuite/19_diagnostics/error_code/operators/bool.cc: Use errc.
        * testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
        * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise.
        * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Update
        dg-error line numbers.
        * testsuite/19_diagnostics/error_condition/cons/1.cc: Use
        generic_category.
        * testsuite/19_diagnostics/error_condition/operators/bool.cc: Use errc.
        * testsuite/19_diagnostics/error_condition/operators/equal.cc: Likewise.
        * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
        Likewise.
        * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc: New.
        * testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc:
        Remove using tests since errc is not a namespace.
        * testsuite/19_diagnostics/system_error/cons-1.cc: Use errc.
        * testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
        * testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
        Likewise.
        * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
        Likewise.
        * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.

From-SVN: r141297
2008-10-22 15:27:44 +00:00
..
algorithm
array tuple: Ifndef __GXX_EXPERIMENTAL_CXX0X__ just error out. 2008-05-26 02:19:57 +00:00
bitset bitset: Adjust comment to reflect DR 853. 2008-09-24 17:49:21 +00:00
c++0x_warning.h
chrono chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
complex user.cfg.in: Add complex, ratio, intializer_list. 2008-07-16 07:01:23 +00:00
condition_variable chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
deque
forward_list forward_list: New. 2008-10-15 16:48:13 +00:00
fstream
functional
iomanip
ios
iosfwd
iostream
istream
iterator
limits
list
locale
map
memory re PR libstdc++/36962 ([C++0x] Add constructors / assignment operators from unique_ptr to shared_ptr) 2008-09-04 23:33:10 +01:00
mutex system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00
numeric
ostream system_error (native_category): Remove. 2008-10-10 12:39:01 +00:00
queue
random tuple: Ifndef __GXX_EXPERIMENTAL_CXX0X__ just error out. 2008-05-26 02:19:57 +00:00
ratio user.cfg.in: Add complex, ratio, intializer_list. 2008-07-16 07:01:23 +00:00
regex re PR testsuite/37149 (27_io/basic_ostream/inserters_other/char/error_code.cc) 2008-08-18 17:48:15 +00:00
set
sstream
stack
stdexcept
streambuf
string
system_error system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00
thread thread: New. 2008-09-13 00:32:37 +00:00
tuple tuple (tuple<>::swap): Implement swap for tuple as per DR 522 [Ready]. 2008-10-01 22:04:02 +00:00
type_traits type_traits (__make_unsigned_selector<>): Consider enums of size smaller than short. 2008-09-01 23:24:09 +00:00
unordered_map Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
unordered_set Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
utility utility: Include <initializer_list>, per the current WP. 2008-07-29 17:06:24 +00:00
valarray Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
vector