aboutsummaryrefslogtreecommitdiff
path: root/dep/smart_enum/smart_enum.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dep/smart_enum/smart_enum.hpp')
-rw-r--r--dep/smart_enum/smart_enum.hpp2
1 files changed, 1 insertions, 1 deletions
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) \