Implements noexcept copy constructor for Exception.

This commit is contained in:
Deukhoofd committed 2020-08-15 16:14:06 +02:00
1 parent 0a2acc1eea
commit 7de12d53b5
1 file changed
+2 -1
+2 -1
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,