- use std::runtime_error instead as the constructor on std::exception is a MSVC extension

This commit is contained in:
Magnus Norddahl 2018-11-23 12:06:44 +01:00 committed by drfrag666
parent 831cfd5280
commit 7675e7a6dc

View file

@ -38,6 +38,7 @@
#include <string.h>
#include <stdio.h>
#include <exception>
#include <stdexcept>
#define MAX_ERRORTEXT 1024
@ -80,10 +81,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")
{
}
};