From 08727330e15e3e9158c5c9a673048660735539b8 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 13 Apr 2024 17:31:30 +0200 Subject: [PATCH] Make exceptions copyable --- src/driver/exception.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/driver/exception.hpp b/src/driver/exception.hpp index e5fb191..16689e0 100644 --- a/src/driver/exception.hpp +++ b/src/driver/exception.hpp @@ -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; };