Skip to content

Commit

Permalink
Make exceptions copyable
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Apr 15, 2024
1 parent 240a6da commit bfc0b20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/driver/exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit bfc0b20

Please sign in to comment.