aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/libcxx/include/__exception/exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__exception/exception.h')
-rw-r--r--contrib/llvm-project/libcxx/include/__exception/exception.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/llvm-project/libcxx/include/__exception/exception.h b/contrib/llvm-project/libcxx/include/__exception/exception.h
index 3db0126da296..e724e1b99bd1 100644
--- a/contrib/llvm-project/libcxx/include/__exception/exception.h
+++ b/contrib/llvm-project/libcxx/include/__exception/exception.h
@@ -72,7 +72,8 @@ public:
class _LIBCPP_EXPORTED_FROM_ABI exception {
public:
_LIBCPP_HIDE_FROM_ABI exception() _NOEXCEPT {}
- _LIBCPP_HIDE_FROM_ABI exception(const exception&) _NOEXCEPT = default;
+ _LIBCPP_HIDE_FROM_ABI exception(const exception&) _NOEXCEPT = default;
+ _LIBCPP_HIDE_FROM_ABI exception& operator=(const exception&) _NOEXCEPT = default;
virtual ~exception() _NOEXCEPT;
virtual const char* what() const _NOEXCEPT;
@@ -81,6 +82,8 @@ public:
class _LIBCPP_EXPORTED_FROM_ABI bad_exception : public exception {
public:
_LIBCPP_HIDE_FROM_ABI bad_exception() _NOEXCEPT {}
+ _LIBCPP_HIDE_FROM_ABI bad_exception(const bad_exception&) _NOEXCEPT = default;
+ _LIBCPP_HIDE_FROM_ABI bad_exception& operator=(const bad_exception&) _NOEXCEPT = default;
~bad_exception() _NOEXCEPT override;
const char* what() const _NOEXCEPT override;
};