From ee68cf33921944fd3f8c188044906998cf10ff2a Mon Sep 17 00:00:00 2001 From: Treeston Date: Fri, 26 Oct 2018 19:17:19 +0200 Subject: [PATCH] grr gcc bugs --- dep/smart_enum/smart_enum.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dep/smart_enum/smart_enum.hpp b/dep/smart_enum/smart_enum.hpp index e098b93c93c..8cc585722e6 100644 --- a/dep/smart_enum/smart_enum.hpp +++ b/dep/smart_enum/smart_enum.hpp @@ -192,7 +192,7 @@ SMART_ENUM_IMPL_REPEAT_MEMBERS(PREFIX, MEMBERS, MEMBER_TO_STRING) \ } \ \ - throw std::invalid_argument("value"); \ + return nullptr; \ } #define SMART_ENUM_IMPL_MEMBER_TO_STRING(PREFIX, NAME, MEMBER, INDEX) \