Make exceptions copyable

This commit is contained in:
momo5502 2024-04-13 17:31:30 +02:00
parent 240a6da306
commit bfc0b20ba3

View File

@ -17,9 +17,14 @@ namespace std
class exception class exception
{ {
public: public:
exception() = default;
exception& operator=(const exception& obj) noexcept = default; exception& operator=(const exception& obj) noexcept = default;
exception& operator=(exception&& obj) noexcept = default; exception& operator=(exception&& obj) noexcept = default;
exception(const exception& obj) noexcept = default;
exception(exception&& obj) noexcept = default;
virtual ~exception() = default; virtual ~exception() = default;
virtual const char* what() const noexcept = 0; virtual const char* what() const noexcept = 0;
}; };