1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-08 23:24:20 +00:00
Commit graph

602 commits

Author SHA1 Message Date
CrackedMatter
2e6e8bfff3
Support fmt and std::format in C++20 module (#394) 2025-11-21 19:21:54 +04:00
neargye
341521b9c0 fix build 2025-11-21 19:06:51 +04:00
neargye
a0db691691 fix #397 2025-11-21 18:34:56 +04:00
neargye
3e5609848e fix empry sting and static_str string_view conversion 2025-11-21 18:13:46 +04:00
dependabot[bot]
ca3c6c35fe
Bump the github-actions group across 1 directory with 3 updates (#435) 2025-11-21 17:55:40 +04:00
Frankie Robertson
83ab7f4f57
Replace test option with not building tests by default (#430)
Co-authored-by: Frankie Robertson <frankie@robertson.name>
2025-10-08 22:29:29 +04:00
dependabot[bot]
ec5734e491
Bump the github-actions group with 2 updates (#426) 2025-09-05 19:54:19 +04:00
neargye
0f47904705 fix multiple definitions of adl_info 2025-09-05 19:51:55 +04:00
neargye
083298a045 fix namespace 2025-09-01 01:21:32 +04:00
ZXShady
aaf57737d5
Add prefix trimming (#414) 2025-08-31 22:56:19 +04:00
dependabot[bot]
d468f23408
Bump github/codeql-action in the github-actions group (#421) 2025-08-24 23:01:03 +04:00
dependabot[bot]
691cc4b2a4
Bump the github-actions group with 3 updates (#417) 2025-07-17 13:54:17 +04:00
Ryan Saunders
ecdeb1cea5
Fix __FUNCSIG__ parsing on x86 by explicitly declaring the calling convention (#405) 2025-06-27 15:25:18 +04:00
neargye
ca429575e0 update ga 2025-06-24 17:22:59 +04:00
Flinner
be00112dda
Fix GIT_TAG for CMake's CPAMAddPackage (#416) 2025-06-24 17:11:50 +04:00
neargye
a733a2ea66 clean-up 2025-06-11 21:39:34 +04:00
ZXShady
d642b05dcb
Add adl_ranges (#413)
Co-authored-by: lsemprini <17140216+lsemprini@users.noreply.github.com>
2025-06-11 21:00:01 +04:00
neargye
513e606d7b clean-up 2025-06-11 20:49:11 +04:00
Lassi Helynranta
aa724339dc
fix: warnings about included file in module purview in MSVC (#407) 2025-06-11 20:47:09 +04:00
dependabot[bot]
627d0eb242
Bump the github-actions group with 3 updates (#403) 2025-06-11 20:46:15 +04:00
neargye
ed41cbbd0a update github actions 2025-06-11 20:45:07 +04:00
Kyle Williams
c726051c5c
doc: Fixes typo in README (#406) 2025-06-11 20:38:33 +04:00
Thomas Khyn
a413fcc9c4
fix: use inline instead of static for constexpr in header file (#401)
Using `static constexpr` in a header file does not seem to be correct - see [1] - and generates a bug when building the magic_enum module with GCC 15

[1] https://isocpp.org/blog/2018/05/quick-q-use-of-constexpr-in-header-file
2025-02-20 12:38:17 +04:00
Daniil Goncharov
ff6e5dd1c8
fix 379 (#382) 2025-02-20 12:37:47 +04:00
dependabot[bot]
61a4f20581
Bump the github-actions group across 1 directory with 2 updates (#399) 2025-02-20 12:36:05 +04:00
A. Jiang
2ec43969d8
More reliable value validness detection towards CWG1766 (#398)
CWG1766 made out-of-range cast to enumeration without fixed underlying
type raise undefined behavior. Such UB arguably also applies to
`bit_cast`, although it's not required that UB in `bit_cast` makes the
expression non-constant.

Currently, only Clang has implemented CWG1766, while Clang's underlying
`__builtin_bit_cast` happens to be a workaround. However, it's more
reliable to me to rely on the guarantee that core language UB causes
constant evaluation failure.

The approach in this patch effectively detects whether
`std::integral_constant<E, static_cast<E>(V)>` is a valid type, which is
equivalent to whether `static_cast<E>(V)` is a constant expression. When
the answer is `false`, value `V` can't be an enumerator of `E`.
2025-02-20 12:34:09 +04:00
Jon Skjelsbæk
1a1824df7a
Using CMAKE_INSTALL_INCLUDEDIR for installing includes. (#391) 2024-11-23 18:07:10 +02:00
Emmanuel Ferdman
85e05c8e76
fix: magic_enum.hpp reference (#390) 2024-11-23 18:07:03 +02:00
neargye
06741ec03f update doc 2024-11-20 00:07:21 +02:00
neargye
84990c60b2 update doc 2024-11-19 23:47:49 +02:00
Felix
715b442682
Only prepend $prefix for relative paths (#389) 2024-11-18 13:30:32 +02:00
neargye
e046b69a37 v0.9.7 2024-11-14 00:15:10 +01:00
Bastian Schmitz
15a085f234
fix enum_fuse shift value calculation (Neargye#386) (#387) 2024-11-14 00:04:44 +01:00
dependabot[bot]
c2636e59da
Bump the github-actions group with 4 updates (#385) 2024-11-14 00:04:28 +01:00
Stephan Lachnit
49a707dc77
meson: install headers and pkg-config file (#383) 2024-11-14 00:03:26 +01:00
Arni
a72a0536c7
fix installing via cmake (#374) 2024-10-14 18:05:55 +03:00
dependabot[bot]
9675f2bc29
Bump github/codeql-action in the github-actions group (#380) 2024-10-14 15:36:44 +03:00
neargye
126539e13c fix doc 2024-09-22 19:59:40 +03:00
dependabot[bot]
a560110ead
Bump the github-actions group with 2 updates (#375) 2024-09-19 13:01:16 +03:00
dependabot[bot]
dae6bbf16c
Bump the github-actions group with 3 updates (#370) 2024-08-03 16:37:33 +03:00
Ricardo Cardoso
ec8b0e985f
Update comments regarding max and min (#369)
The comments in the code regarding MAGIC_ENUM_RANGE_MIN and MAGIC_ENUM_RANGE_MAX values were not updated according to the latest changes on those default values.
2024-07-25 11:29:56 +03:00
asolwa
9a9308fd54
fix bitset constructor (#367) 2024-07-19 15:51:58 +03:00
Atanov Mikhail
664ee62c12
Parameterize formatter::format to use with FMT_COMPILE (#365) 2024-07-08 20:37:57 +03:00
dependabot[bot]
ec1adc5763
Bump github/codeql-action in the github-actions group (#364) 2024-07-01 23:07:11 +03:00
neargye
dd6a39d0ba v0.9.6 2024-06-29 17:17:06 +03:00
neargye
0c1d10a624 fix tests 2024-06-29 17:13:32 +03:00
neargye
f08355cd0d fix enum_reflected 2024-06-29 17:01:20 +03:00
neargye
bc2e94853b add enum_reflected 2024-06-29 16:47:56 +03:00
Daniil Goncharov
2ac8152a2b
update ci (#363) 2024-06-29 16:18:48 +03:00
neargye
f2ad79f06b fix #362 2024-06-28 22:59:30 +03:00