mirror of
https://github.com/momo5502/hypervisor.git
synced 2026-10-18 17:14:35 +00:00
Make exceptions copyable
This commit is contained in:
1 parent
7a7f757f09
commit
08727330e1
1 file changed
+5
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user