aboutsummaryrefslogtreecommitdiff
path: root/dep/smart_enum/smart_enum.hpp
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-10-26 19:17:19 +0200
committerTreeston <treeston.mmoc@gmail.com>2018-10-26 19:17:19 +0200
commitee68cf33921944fd3f8c188044906998cf10ff2a (patch)
tree4757ada98577a58c3714ffd271354e49d25b6dba /dep/smart_enum/smart_enum.hpp
parent207093475a177e9fd29696e80fdd06a11324782d (diff)
grr gcc bugs
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) \