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
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
ZXShady
d642b05dcb
Add adl_ranges ( #413 )
...
Co-authored-by: lsemprini <17140216+lsemprini@users.noreply.github.com>
2025-06-11 21:00:01 +04:00
Daniil Goncharov
ff6e5dd1c8
fix 379 ( #382 )
2025-02-20 12:37:47 +04:00
Arni
a72a0536c7
fix installing via cmake ( #374 )
2024-10-14 18:05:55 +03:00
neargye
0c1d10a624
fix tests
2024-06-29 17:13:32 +03:00
neargye
bc2e94853b
add enum_reflected
2024-06-29 16:47:56 +03:00
neargye
f2ad79f06b
fix #362
2024-06-28 22:59:30 +03:00
Ezekiel Warren
173f22250c
chore: remove crlf line endings in bazel files ( #358 )
2024-06-04 20:55:16 +03:00
Daniil Goncharov
801c68bdc9
fix wshadow ( #354 )
2024-05-25 17:35:16 +03:00
neargye
414fb654d3
update copyright
2024-01-02 02:50:34 +04:00
neargye
73c1d83646
fix build
2024-01-02 02:19:26 +04:00
neargye
e26b05e0a0
clean-up
2023-12-18 00:56:13 +04:00
Daniil Goncharov
e09f25780a
checking that the enum is valid (not empty and not forward declaration) ( #323 )
2023-12-16 17:00:00 +04:00
Arkhipov Ivan
56dcb011c2
Put get to magic_enum::containers namespace ( #316 )
2023-11-15 22:25:49 +04:00
Chris Sauer
016883d29a
Simplify Bazel ( #312 )
2023-11-15 14:17:08 +04:00
Ryan Samarakoon
cd5fd2c343
Fix set erase function ( #308 )
2023-11-12 17:30:10 +04:00
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
Ezekiel Warren
745bf36a64
bazel updates ( #291 )
2023-08-23 13:40:03 +04:00
neargye
43070070e6
fix enum_type_name in namespace
2023-06-21 12:45:59 +04:00
neargye
fd9f70b91d
fix _ITERATOR_DEBUG_LEVEL
2023-06-16 06:04:33 +04:00
neargye
7a881a68ba
add enum_next_value and enum_prev_value
2023-06-12 17:45:42 +04:00
neargye
e7749da06b
add MAGIC_ENUM_NO_ASSERT
2023-06-12 17:43:19 +04:00
neargye
3b4967b21e
move all enum_flags_* func to enum_flags.hpp
2023-06-05 14:44:06 +04:00
Daniil Goncharov
9508c563da
add enum_flags_test and enum_flags_test_any functions for flags ( #277 )
...
Co-authored-by: Jon Petrissans <jon.petrissans@protonmail.com>
2023-06-05 14:10:02 +04:00
neargye
f2ddc4ba62
add more test
2023-06-02 11:24:25 +04:00
neargye
6fe7ffbf35
fix enum name in namespace
2023-05-30 14:37:45 +04:00
neargye
6fec6f6386
add more test
2023-05-30 13:24:25 +04:00
neargye
abf48fc20e
fix enum name in class
2023-05-30 12:54:30 +04:00
Tyler
930bcf0ba2
fixed meson build for the tests ( #275 )
2023-05-30 12:29:52 +04:00
Daniil Goncharov
8f6c9905fd
Enable wchar_t as string_view value_type ( #272 )
2023-05-24 19:05:20 +04:00
neargye
50adc0691e
fix clang-format
2023-05-23 21:12:42 +04:00
Daniil Goncharov
629f7b09af
add support big range ( #268 )
...
* add support big range
* remove string_view from n()
* fix containers
2023-05-22 19:44:28 +04:00
neargye
ed43fd5fa2
move iostream_operators to magic_enum_iostream
2023-05-21 20:55:52 +04:00
neargye
9c710f6119
add more test
2023-05-21 17:09:30 +04:00
neargye
427a47394f
* Remove MAGIC_ENUM_ENABLE_NONASCII
...
* Optimize template instantiations
* Remove auto is_flags
* Change flags API
2023-05-21 04:08:07 +04:00
neargye
737ed4fc7f
add fmt support
2023-05-19 19:49:36 +04:00
Ed Catmur
5367f5183c
Support gcc -fno-pretty-templates ( #258 )
...
https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-fno-pretty-templates
The gcc option -fno-pretty-templates changes the __PRETTY_FUNCTION__ from e.g.
"auto n() [with E = E]" to "auto n<E>()" (more like MSVC).
Pass the entire __PRETTY_FUNCTION__ / __FUNCSIG__ to pretty_name(), and truncate it there, checking the last character if necessary to determine the format used.
2023-05-13 13:15:23 +04:00
talisein
8111a0d17d
Move NONASCII tests to their own file ( #261 )
2023-05-13 03:44:45 +04:00
Ezekiel Warren
48054f64ab
add bzlmod support ( #254 )
2023-04-26 20:16:08 +04:00
Valeri
fc88b4936a
meson: add options and tests ( #255 )
2023-04-24 23:36:25 +04:00
Bela Schaum
533c9509ef
add constexpr containers ( #187 )
2023-01-17 18:59:37 +04:00
neargye
b625fe721c
ENABLE_NONASCII depends only on settings
2022-11-28 14:37:24 +02:00
neargye
8bd403f888
fix #216 , fix #199
2022-11-07 21:00:16 +04:00
neargye
0fec11eda3
fix build
2022-08-13 18:12:55 +04:00
neargye
cd1ec187e6
fix #157
2022-08-13 18:09:42 +04:00
neargye
b5116d078d
add aliases test
2022-08-13 17:51:46 +04:00
neargye
4802f793bb
clean-up
2022-06-28 14:57:34 +04:00
Bela Schaum
dd80219653
Magic enum format in a separated header file ( #185 )
2022-06-28 14:45:47 +04:00