Skip to content

Commit

Permalink
Disable bitops test for Microsoft C++ regardless of version. Their co…
Browse files Browse the repository at this point in the history
…mpiler is allergic to static_assert for no apparent reason.
  • Loading branch information
joncampbell123 committed Aug 23, 2018
1 parent 8c1b3c4 commit 2e4c6f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gui/bitop.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit 2e4c6f4

Please sign in to comment.