diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-07-20 18:17:30 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-07-20 18:17:30 +0000 |
commit | cd88bb8c771788c4f3ad2f1be42e99db5e4a90fe (patch) | |
tree | 65be25078ab37ec701d000ff4a8f1f66c3db81ae /libstdc++-v3/testsuite/util | |
parent | d05f35643be286f2cb4c10284d053ec13f48de04 (diff) | |
download | gcc-cd88bb8c771788c4f3ad2f1be42e99db5e4a90fe.zip gcc-cd88bb8c771788c4f3ad2f1be42e99db5e4a90fe.tar.gz gcc-cd88bb8c771788c4f3ad2f1be42e99db5e4a90fe.tar.bz2 |
system_error: Use noexcept.
2011-07-20 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/system_error: Use noexcept.
* src/system_error.cc: Likewise.
* testsuite/19_diagnostics/error_condition/modifiers/39881.cc: Adjust.
* testsuite/19_diagnostics/error_condition/cons/39881.cc: Likewise.
* testsuite/19_diagnostics/error_code/modifiers/39882.cc: Likewise.
* testsuite/19_diagnostics/error_code/cons/39882.cc: Likewise.
* testsuite/util/testsuite_error.h: Likewise.
* include/std/system_error (error_code::error_code(_ErrorCodeEnum)):
Use enable_if on template parameter default.
(error_condition::error_condition(_ErrorConditionEnum)): Likewise.
From-SVN: r176529
Diffstat (limited to 'libstdc++-v3/testsuite/util')
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_error.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/util/testsuite_error.h b/libstdc++-v3/testsuite/util/testsuite_error.h index c2bfed7..bb9ddd7 100644 --- a/libstdc++-v3/testsuite/util/testsuite_error.h +++ b/libstdc++-v3/testsuite/util/testsuite_error.h @@ -1,7 +1,7 @@ // -*- C++ -*- // Error handling utils for the C++ library testsuite. // -// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +// Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -32,8 +32,8 @@ namespace __gnu_test test_category() {} virtual const char* - name() const - { + name() const noexcept + { const char* s = "__gnu_test::test_category"; return s; } @@ -48,8 +48,8 @@ namespace __gnu_test test_derived_category() {} virtual const char* - name() const - { + name() const noexcept + { const char* s = "__gnu_test::test_derived_category"; return s; } |