mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-19 13:42:55 +00:00
Make exceptions copyable
This commit is contained in:
parent
240a6da306
commit
bfc0b20ba3
@ -17,9 +17,14 @@ namespace std
|
||||
class exception
|
||||
{
|
||||
public:
|
||||
exception() = default;
|
||||
|
||||
exception& operator=(const 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 const char* what() const noexcept = 0;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user