mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 08:46:42 +08:00
Enabled constexpr support for Visual Studio 2017
This commit is contained in:
parent
ecdc88f066
commit
2fad3f60ee
3
enum.h
3
enum.h
@ -38,6 +38,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
# if _MSC_VER >= 1911
|
||||||
|
# define BETTER_ENUMS_HAVE_CONSTEXPR
|
||||||
|
# endif
|
||||||
# ifdef __clang__
|
# ifdef __clang__
|
||||||
# if __has_feature(cxx_constexpr)
|
# if __has_feature(cxx_constexpr)
|
||||||
# define BETTER_ENUMS_HAVE_CONSTEXPR
|
# define BETTER_ENUMS_HAVE_CONSTEXPR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user