Enabled constexpr support for Visual Studio 2017

This commit is contained in:
Zsolt Parragi 2017-06-23 16:42:23 +02:00 committed by Anton Bachin
parent ecdc88f066
commit 2fad3f60ee

3
enum.h
View File

@ -38,6 +38,9 @@
#endif
#ifdef _MSC_VER
# if _MSC_VER >= 1911
# define BETTER_ENUMS_HAVE_CONSTEXPR
# endif
# ifdef __clang__
# if __has_feature(cxx_constexpr)
# define BETTER_ENUMS_HAVE_CONSTEXPR