mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-14 00:14:19 +00:00
add MAGIC_ENUM_NO_ASSERT
This commit is contained in:
parent
cf659c59c8
commit
e7749da06b
7 changed files with 59 additions and 61 deletions
|
|
@ -84,7 +84,7 @@ template <detail::enum_subtype S, typename... Es>
|
|||
#else
|
||||
const auto fuse = detail::typesafe_fuse_enum<S, std::decay_t<Es>...>(values...);
|
||||
#endif
|
||||
return assert(fuse), fuse;
|
||||
return MAGIC_ENUM_ASSERT(fuse), fuse;
|
||||
}
|
||||
|
||||
// Returns a bijective mix of several enum values. This can be used to emulate 2D switch/case statements.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue