From 5fc72145af2085993702e39916db1cf20fb6a321 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Mon, 6 Jul 2015 13:31:52 +0200 Subject: [PATCH] noexcept only on *nix --- libjsengine/JSEngine.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libjsengine/JSEngine.h b/libjsengine/JSEngine.h index afd7292bd..d44fc7828 100644 --- a/libjsengine/JSEngine.h +++ b/libjsengine/JSEngine.h @@ -29,7 +29,11 @@ namespace eth { class JSException: public std::exception {}; +#if defined(_MSC_VER) class JSPrintException: public JSException { char const* what() const { return "Cannot print expression!"; } }; +#else +class JSPrintException: public JSException { char const* what() const noexcept { return "Cannot print expression!"; } }; +#endif class JSString {