From 9726920b7f107b7218bec06eddac4ab91922c7bb Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 15 Aug 2020 16:14:33 +0200 Subject: [PATCH] Fixes for Windows. --- src/Exception.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Exception.hpp b/src/Exception.hpp index 3043de4..ab381c0 100644 --- a/src/Exception.hpp +++ b/src/Exception.hpp @@ -23,7 +23,14 @@ namespace ArbUt { #endif } - Exception(const Exception& e) noexcept : std::logic_error(e.what()), _stack(e._stack) {} + Exception(const Exception& e) noexcept + : std::logic_error(e.what()) +#if !WINDOWS + , + _stack(e._stack) +#endif + { + } const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW override { return logic_error::what(); }