Implements noexcept copy constructor for Exception.

This commit is contained in:
Deukhoofd 2020-08-15 16:14:06 +02:00
parent 0a2acc1eea
commit 7de12d53b5
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ namespace ArbUt {
#endif
}
public:
Exception(const Exception& e) noexcept : std::logic_error(e.what()), _stack(e._stack) {}
const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW override { return logic_error::what(); }
[[nodiscard]] std::string GetStacktrace([[maybe_unused]] size_t depth = 6,