Enabled constepxr support for clang-cl.

This commit is contained in:
Zsolt Parragi 2016-07-09 14:47:46 +02:00
parent f520b397e3
commit ab4c8583db

5
enum.h
View File

@ -38,6 +38,11 @@
#endif
#ifdef _MSC_VER
# ifdef __clang__
# if __has_feature(cxx_constexpr)
# define BETTER_ENUMS_HAVE_CONSTEXPR
# endif
# endif
# ifndef _CPPUNWIND
# define BETTER_ENUMS_NO_EXCEPTIONS
# endif