From e02367dd097fe5631a637627e4382014db73fbea Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 23 Nov 2018 12:06:44 +0100 Subject: [PATCH] - use std::runtime_error instead as the constructor on std::exception is a MSVC extension --- src/doomerrors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doomerrors.h b/src/doomerrors.h index a7ec02654..3d780466b 100644 --- a/src/doomerrors.h +++ b/src/doomerrors.h @@ -80,10 +80,10 @@ protected: char m_Message[MAX_ERRORTEXT]; }; -class CNoRunExit : public std::exception +class CNoRunExit : public std::runtime_error { public: - CNoRunExit() : std::exception("NoRunExit") + CNoRunExit() : std::runtime_error("NoRunExit") { } };