1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00
magic_enum/include
Vitaly 5523803cfc
Explicitly mark the result of detail::names as constexpr (#305)
It might make no sense, but on MSVC it can generate a compile-time
error, especially if an enumerator's value is out of range.

Example:
error C3615: constexpr function 'magic_enum::detail::names' cannot
result in a constant expression
...
note: failure was caused by call of undefined function or one not
declared 'constexpr'
...
note: see usage of '__builtin_array_init_helper'
2023-11-09 14:09:37 +04:00
..
magic_enum.hpp Explicitly mark the result of detail::names as constexpr (#305) 2023-11-09 14:09:37 +04:00
magic_enum_all.hpp v0.9.3 2023-06-22 17:22:05 +04:00
magic_enum_containers.hpp v0.9.3 2023-06-22 17:22:05 +04:00
magic_enum_flags.hpp v0.9.3 2023-06-22 17:22:05 +04:00
magic_enum_format.hpp fix fmt::formatter 2023-09-20 18:44:31 +04:00
magic_enum_fuse.hpp v0.9.3 2023-06-22 17:22:05 +04:00
magic_enum_iostream.hpp v0.9.3 2023-06-22 17:22:05 +04:00
magic_enum_switch.hpp fix Argument-dependent lookup results in enum_switch 2023-10-04 19:14:27 +04:00
magic_enum_utility.hpp fixes 'std::ptrdiff_t' to 'std::size_t' casting error and suppresses -Wuseless-cast warning for gcc and clang (#306) 2023-11-09 14:07:16 +04:00