Permalink
Browse files

Disable bitops test for Microsoft C++ regardless of version. Their co…

…mpiler is allergic to static_assert for no apparent reason.
  • Loading branch information...
joncampbell123 committed Aug 23, 2018
1 parent 8c1b3c4 commit 2e4c6f463b926bd0e3850a9a306b749767726bd5
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/gui/bitop.cpp
View
@@ -3,11 +3,9 @@
#include "bitop.h"
/* v140 is reported to choke on this self-test */
/* I don't know when this happened.... but suddenly Microsoft C++ doesn't like these constexpr tests or static_assert >:( */
#if defined(_MSC_VER)
# if _MSC_VER >= 1900 && _MSC_VER < 1915 /* v140 up to (not including v141 */
# define DISABLE_SELF_TEST
# endif
# define DISABLE_SELF_TEST
#endif
namespace bitop {

0 comments on commit 2e4c6f4

Please sign in to comment.