1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00
Commit graph

35 commits

Author SHA1 Message Date
Neargye
e3dd165a4a add compile check at enum_name 2020-01-25 23:51:50 +05:00
neargye
00f46ae79c fix test 2019-10-14 21:10:50 +05:00
neargye
a36721d6c7 clang 5 linker fail: undefined reference to `magic_enum::enum_range<number>::min/max' 2019-10-14 19:45:03 +05:00
neargye
3804a9d3b2 update test 2019-10-14 17:55:45 +05:00
neargye
851e7f1a4e clean-up test 2019-10-14 17:47:36 +05:00
neargye
6b95773b05 clean-up tests 2019-10-14 13:03:28 +05:00
Alexander Karatarakis
0f36cd5b0f Introduce mixed_sign_less()/min()/max() (#18)
Previously, there was mixed sign comparison:
```
reflected_min_v = -120 > 0U ? -120 : 0
```
which returns -120 because the condition is true, since the
compiler casts the signed value to unsigned, leading to a huge value.
This caused the following values as result:

```
reflected_min_v == -120
min_v = -1
static_cast<U>(min_v) = 18446744073709551615
```

The last one is used in magic_enum::enum_index().
2019-10-14 10:44:09 +03:00
neargye
0b262f7cc8 fix cvref 2019-10-03 14:50:09 +05:00
Alexander Karatarakis
3f0aad9f74 Fix regression of enum_cast<>() when used with refs (EnumT& vs EnumT) (#16) 2019-10-03 12:02:39 +05:00
neargye
105c8f067e remove is_fixed_enum
non stable and useless
2019-10-02 17:06:36 +05:00
neargye
2f9400bcf3 wow, msvc not follow standard 2019-09-29 17:50:05 +05:00
neargye
2541180874 update test 2019-09-29 16:22:47 +05:00
neargye
c9337182f4 fix is_magic_enum_supported 2019-08-27 20:30:12 +05:00
neargye
22167885d7 update tests 2019-08-24 20:09:50 +05:00
neargye
e15c38ac65 update tests 2019-08-19 21:58:58 +05:00
neargye
777792339c clean-up ostream operator 2019-08-19 20:44:08 +05:00
terik23
172c685547 improve name_impl, ostream_operators 2019-07-25 00:37:59 +05:00
neargye
9a700b545d add bitwise_operators 2019-07-24 18:47:36 +05:00
neargye
cd01fa1ba4 update test 2019-07-24 18:47:13 +05:00
neargye
34fb3ba22a add enum_name for static storage enum variable 2019-05-02 19:40:51 +05:00
neargye
babf616d35 update test 2019-04-30 17:09:11 +05:00
terik23
158c736a32 update enum_entries 2019-04-23 01:35:24 +05:00
terik23
9dc22008a7 enum_name returns string_view 2019-04-22 02:53:50 +05:00
terik23
4a540b1a2e add more test 2019-04-11 01:03:07 +05:00
neargye
d24d38ea50 add is_unscoped_enum/is_scoped_enum 2019-04-08 18:29:03 +05:00
neargye
11a0366421 v0.4.0 2019-04-08 15:06:00 +05:00
terik23
82a326876d fix warnings 2019-04-08 03:13:19 +05:00
terik23
c425706289 v0.3.0 2019-04-08 02:57:11 +05:00
terik23
74eac12c11 dev v0.3.0 2019-04-08 01:56:13 +05:00
terik23
5a3d4b53e6 v0.2.0 2019-04-06 19:44:10 +05:00
terik23
2144c44eec update test 2019-04-06 18:16:14 +05:00
terik23
0ac07739f6 v0.1.2 2019-04-06 18:15:25 +05:00
terik23
0530e2c5bd clean-up 2019-04-02 00:05:34 +05:00
terik23
100ca7ba8c improve enum_from_string, static_assert and doc 2019-03-31 20:05:20 +05:00
terik23
ac6444fae5 v0.1.0 2019-03-31 02:44:47 +05:00