diff options
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/c++11/functional.cc | 9 | ||||
-rw-r--r-- | libstdc++-v3/src/c++11/shared_ptr.cc | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/libstdc++-v3/src/c++11/functional.cc b/libstdc++-v3/src/c++11/functional.cc index 2ab34051432..8d81f6028eb 100644 --- a/libstdc++-v3/src/c++11/functional.cc +++ b/libstdc++-v3/src/c++11/functional.cc @@ -1,7 +1,6 @@ // Support for <functional> -*- C++ -*- -// Copyright (C) 2011 -// Free Software Foundation, Inc. +// Copyright (C) 2011-2013 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 @@ -29,7 +28,11 @@ namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION - bad_function_call::~bad_function_call() throw() = default; + bad_function_call::~bad_function_call() noexcept = default; + + const char* + bad_function_call::what() const noexcept + { return "bad_function_call"; } _GLIBCXX_END_NAMESPACE_VERSION } // namespace diff --git a/libstdc++-v3/src/c++11/shared_ptr.cc b/libstdc++-v3/src/c++11/shared_ptr.cc index 911e745ebe2..ca5714a318d 100644 --- a/libstdc++-v3/src/c++11/shared_ptr.cc +++ b/libstdc++-v3/src/c++11/shared_ptr.cc @@ -1,7 +1,6 @@ // Support for pointer abstractions -*- C++ -*- -// Copyright (C) 2011 -// Free Software Foundation, Inc. +// Copyright (C) 2011-2013 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 @@ -33,7 +32,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION char const* bad_weak_ptr::what() const noexcept - { return "std::bad_weak_ptr"; } + { return "bad_weak_ptr"; } _GLIBCXX_END_NAMESPACE_VERSION } // namespace |